open( FH, $yourfile ) or die "Can't open $yourfile: $!\n"; while( ){ next if /pattern_indicating_line_to_skip/; # otherwise, do stuff... }