Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^4: error calling variables? Going insane...

by lecb (Acolyte)
on Jun 25, 2014 at 22:22 UTC ( #1091264=note: print w/ replies, xml ) Need Help??


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:

$key = some ID $value = + or -
If I print out $strands{$ID[$i]}, all it does is print a string of pluses and minuses.

I have however figured out the problem:
my @ID; foreach my $line(@col_NM) { if ($line =~ m/(NM\_\d+)/) { push (@ID, $1); } }
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.

Thank you for pointing me in the right direction and your patience! :) El


Comment on Re^4: error calling variables? Going insane...
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1091264]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2015-07-28 04:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (252 votes), past polls