Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2016-05-29 06:22 GMT
Find Nodes?
    Voting Booth?