Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Confused on function call syntax

by kcott (Canon)
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
Replies are listed 'Best First'.
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 avoiding work at the Monastery: (5)
As of 2015-11-29 15:18 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (751 votes), past polls