Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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 drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2016-05-26 19:42 GMT
Find Nodes?
    Voting Booth?