Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by jeffa (Bishop)
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 studying the Monastery: (12)
As of 2015-07-31 12:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (277 votes), past polls