Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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.

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1011962]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (2)
As of 2018-05-22 18:28 GMT
Find Nodes?
    Voting Booth?