Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 chilling in the Monastery: (9)
As of 2016-06-27 17:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (340 votes). Check out past polls.