foreach $genes(@genome){ chomp($genes); #### while ( $genes = ){ chomp($genes); next if ( $genes !~ /^Gm10/ );