in reply to doing something with the rest of a file after matching a keyword
Undef the input seperator variable ($/) after you find it:
my $data; while($data = <FILE>) { chomp $data; $/ = undef if($data eq 'Well'); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: doing something with the rest of a file after matching a keyword
by Hofmator (Curate) on Jan 17, 2003 at 17:40 UTC |