while(defined($line = )) { if($line =~ /(^\s*)(\"[^*]*?\")$/g) {next;}; #Blow off blank lines chomp($line); }