Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: "$_" vs. $_

by bart (Canon)
on Apr 07, 2007 at 18:16 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://608846]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-03-29 00:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found