Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: "$_" vs. $_

by bart (Canon)
on Apr 07, 2007 at 18:16 UTC ( #608846=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub foo
    {
        while (@_) { local $_ = shift; $params->{$_} = shift; }
        print "$_: $params->{$_}\n", for keys %$params;
    }
    
  2. or download this
    sub foo
    {
    ...
        while (@_) { $_ = shift; $params->{$_} = shift; }
        print "$_: $params->{$_}\n", for keys %$params;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2014-11-01 13:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    If a safe, affordable anti-ageing treatment that extended life indefinitely were to become available, would you take it?



    Results (4 votes), past polls