Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: implicit local $_ happens sometimes

by ikegami (Patriarch)
on Apr 11, 2007 at 19:36 UTC ( [id://609457]=note: print w/replies, xml ) Need Help??


in reply to implicit local $_ happens sometimes
in thread "$_" vs. $_

I still don't understand why our "standard practice" doesn't include doing a "local $_" at the beginning of every sub... but then on the other hand, I guess it isn't all that common to get burned by $_ problems.

while (<FILE>) is the most common offender by far, but it is usually only used in the main body where it does no damage.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-20 01:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found