Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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?
[Corion]: A good daypart!

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2017-01-17 07:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (152 votes). Check out past polls.