Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2016-10-29 00:15 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (387 votes). Check out past polls.