Undef the input seperator variable ($/) after you find it:
my $data; while($data = <FILE>) { chomp $data; $/ = undef if($data eq 'Well'); }
In reply to Re: doing something with the rest of a file after matching a keyword
by hardburn
in thread doing something with the rest of a file after matching a keyword
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |