while (my $line = <$inputFH> ) { next unless $line =~ m{some pattern}; # Process wanted line here ... last; # Break out of while loop }
I hope this helps you.
Cheers,
JohnGG
In reply to Re: Skipping to file end
by johngg
in thread Skipping to file end
by uvnew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |