Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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.

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?
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 about the Monastery: (9)
As of 2016-08-29 06:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (398 votes). Check out past polls.