|
|
| Just another Perl shrine | |
| PerlMonks |
Re: Very curious Problem...by LanX (Monsignor) |
| on Jan 23, 2013 at 09:06 UTC ( #1014862=note: print w/ replies, xml ) | Need Help?? |
|
> Why $_ is changed?? while(<STATUS>) sets $_ (see perlop ¹) and $_ is global. Maybe you rather wanna use: while (my $line = <STATUS>) Cheers Rolf
UPDATE¹) The following lines are equivalent:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||