|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: Re: Re: opening a file destroys nulling entries in a list?!?!by bobn (Chaplain) |
| on Aug 07, 2003 at 03:45 UTC ( #281736=note: print w/ replies, xml ) | Need Help?? |
|
Nevermend. I think I get it - someone else posted that while(<>){} is the same as while($_=<>){} - it does an assignment to $_ and that's what does the damage. Somehwere, I think I remember someone (Tom Christiansen, I think) saying to always localize $_ in subroutines. Now I know why. --Bob Niederman, http://bob-n.com
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||