$browser->get($module_form);

G

Gary

Trying to understand what the -> does please.

Cannot find it in the perl docs etc.
Gary
 
J

Joost Diepenmaat

Gary said:
Trying to understand what the -> does please.

Cannot find it in the perl docs etc.
Gary

It should be in perlref and perltoot at least. -> is (one of) the
dereferencing operators in perl. In cases where the left-hand side of ->
is an object (as in, a reference to a thing bless()ed into a package),
-> and the right hand side looks like a function call parameter list, ->
does a method lookup:

$object->method($arg1,$arg2);

here the method named "method" is looked up according to the inheritance
graph of whatever package (class) $object is blessed in, and calls it
with arguments $arg1 and $arg2 (and it passes $object too, as the first
argument, preceding the rest).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top