This is probably a very simple question, but it is annoying me.
Code fragment:
my $score=100000; open (IN, $arq); while (<IN>) { open (IN1, $_); while (<IN1>) { my @temp=split(/\t/); if ($temp[1]<$score) {
When executing this code, it complains "use of unitialized value $score in numeric lt...".
I cannot figure out why the variable, defined in the top most level of the program is not the same in the IF condition.
TIAIn reply to Variable scope issue by crickson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |