Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

(jeffa) 3Re: When is $_ local and when is it not?

by jeffa (Chancellor)
on Jul 13, 2001 at 18:09 UTC ( #96400=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: When is $_ local and when is it not?
in thread When is $_ local and when is it not?

... or better yet, just don't use $_ in such situations. You hit the nail on the head when you mentioned someone coming along and breaking it.

my $line; while ($line = <>) { # stuff }
i gonna wash that ambiguity outta my hair . . .

Jeff

R-R-R--R-R-R--R-R-R--R-R-R--R-R-R--
L-L--L-L--L-L--L-L--L-L--L-L--L-L--


Comment on (jeffa) 3Re: When is $_ local and when is it not?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2014-11-23 05:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (128 votes), past polls