in reply to Re^3: error calling variables? Going insane...
in thread error calling variables? Going insane...
Thank you for taking the time to have a look; I have only been learning for 2 weeks. My %strands is as follows:
If I print out $strands{$ID[$i]}, all it does is print a string of pluses and minuses.$key = some ID $value = + or -
I have however figured out the problem:
If $line did not match /(NM\_\d+)/, it would not be added to @ID . Since, I iterate through $ID[$i], I became out of sync with my positives and minuses.my @ID; foreach my $line(@col_NM) { if ($line =~ m/(NM\_\d+)/) { push (@ID, $1); } }
Thank you for pointing me in the right direction and your patience! :) El
|
---|
In Section
Seekers of Perl Wisdom