in reply to Re^2: Perl Bug?
in thread Perl Bug?
Please reread my reply. I already posted how you can remove the foreach which is unnecessary. As an alternative, you could use a different variable than $_ in your inner while-loop:
while (defined (my $line = <PSTEST>)){ print "Line # ".$i."\n".$line; print "Platform now is '$PLATFORM'\n"; $i++; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl Bug?
by Knom (Beadle) on Nov 23, 2005 at 01:05 UTC |