Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Confused on function call syntax

by kcott (Abbot)
on May 14, 2013 at 05:31 UTC ( #1033417=note: print w/ replies, xml ) Need Help??


in reply to Confused on function call syntax

G'day dd-b,

That's an indirect subroutine call. You can use this incantation to see how Perl parses your statement:

$ perl -MO=Deparse,-p -e 'my $map = match_maprow_by_hash $self( $first + );' (my $map = $self->match_maprow_by_hash($first)); -e syntax OK

Compare that with these lines from perlref:

$objref = new Doggie( Tail => 'short', Ears => 'long' ); $objref = Doggie->new(Tail => 'short', Ears => 'long');

perlsub also has information about indirect calls.

-- Ken


Comment on Re: Confused on function call syntax
Select or Download Code
Re^2: Confused on function call syntax
by dd-b (Monk) on May 14, 2013 at 05:55 UTC

    Thank you! And seeing how careful all the reference docs are to deprecate it, I don't feel so bad for not remembering (or not knowing?) it.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1033417]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (11)
As of 2014-04-17 07:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (440 votes), past polls