in reply to Re: Re: strict
in thread strict
Whoops. The problem is that the second way I gave you won't work because the my $line part of it will fail -- and the variable won't be declared -- if you read in a blank line from the file you're looking through. So you could get a loop with the same logic by changing it to:
while (my $line = <> ) { push @lines, $line unless $line eq ".\n"; }
HTH
Philosophy can be made out of anything. Or less -- Jerry A. Fodor
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: strict
by snowrider (Pilgrim) on Feb 02, 2001 at 01:52 UTC |