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

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?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (22)
As of 2014-10-20 13:58 GMT
Find Nodes?
    Voting Booth?

    For retirement, I am banking on:

    Results (77 votes), past polls