Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Using $_ as a temp var, especially in functions

by blokhead (Monsignor)
on Oct 23, 2002 at 06:21 UTC ( [id://207301]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for ($user_input) {
        s/foo/bar/g;
        tr/A-Z/a-z/g;
        print unless /^#/;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-04-24 21:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found