Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Can't understand one line

by BrowserUk (Pope)
on Jan 07, 2013 at 07:16 UTC ( #1011962=note: print w/ replies, xml ) Need Help??


in reply to Can't understand one line

$registry->$_( shift(@_) ) ^^^^^^^^^^^ ^ ^............invoke a method ^^ ............the name of which is stored in $ +_ ^^^^^^^^^^ ............passing the next value from @_ a +s an argument.

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.


Comment on Re: Can't understand one line
Download Code
Re^2: Can't understand one line
by anaconda_wly (Scribe) on Jan 07, 2013 at 07:34 UTC
    OK, but what is the sequence? "shift(@_) "first , or $_ first? in
    $registry->$_( shift(@_) )
    I guess shift(@_) must be first, or else meaningless. Thanks!
      ... shift(@_) must be first ...

      Quite right.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2014-08-30 17:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls