in reply to Error message while reading from file
while( my $line = <> ) { last unless $line =~ /\S/; # ... }
That is, your loop does not merely skip lines which do not contain non-blanks, it actually terminates as soon as it encounters one.
Makeshifts last the longest.
|
|---|