Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Idiom: Localize with 'for'

by Util (Priest)
on Jun 08, 2002 at 19:50 UTC ( [id://172829]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Localize expression into $_ using a single-value 'for'.
    # $_ is default for many Perl functions.
    ...
      do_something($_);
      do_something_else($_);
    }
    
  2. or download this
    for ( $hash1->{'a'}->{'b'}->{'c'} ) {
      $hash2->{'bob'} = $_ if defined;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-19 04:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found