Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: while(<>) { ... } considered harmful

by shotgunefx (Parson)
on Sep 07, 2002 at 23:30 UTC ( #195929=note: print w/ replies, xml ) Need Help??

in reply to while(<>) { ... } considered harmful

Any module that uses $_ should localize it or any other globals they futz around with IMHO.


"To be civilized is to deny one's nature."

Comment on Re: while(<>) { ... } considered harmful
Replies are listed 'Best First'.
Re: Re: while(<>) { ... } considered harmful
by IlyaM (Parson) on Sep 07, 2002 at 23:49 UTC
    I guess it is a time to send patches for 5.8.0 core Perl modules :)
    • Locale::Country
    • Locale::Currency
    • Locale::Language
    • Locale::Script
    It seems all of them touch $_ but do not localize $_.

    Ilya Martynov (

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (13)
As of 2015-12-01 17:34 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (23 votes), past polls