open IN, $filename or die "Cannot open $filename for input: $!\n"; while( ) { next if //; } close IN;