in reply to strip until blank line
Update:my @data = <FILE>; while( $data[0] =~ /\S/ ) { shift @data; } print @data;
which will leave you with FILE at the first line after the blank one.while( $line = <FILE> ) { last unless $line =~ /\S/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: strip until blank line
by quidity (Pilgrim) on Nov 23, 2000 at 00:10 UTC |