http://www.perlmonks.org?node_id=167042


in reply to how do I get perl to skip lines reading a text file?

To skip to the next line, after having found what you're looking for...
open( FH, $yourfile ) or die "Can't open $yourfile: $!\n"; while( <FH> ){ next if /pattern_indicating_line_to_skip/; # otherwise, do stuff... }