Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1033417]
help
Chatterbox?
[jdporter]: I for one think it's kind of ridiculous that people can't ask - here - other people for help just because it involves monetary compensation.
[jdporter]: I think the test for whether to push it to jobs.perl.com should be strict: (a) you're looking for employment, or (b) you're looking to hire an employee or contractor.

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2017-03-23 01:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (278 votes). Check out past polls.