The problem is that simply testing for the presence of the first number returns negative, even though printing out the number and the array suggest they should definately match. Can anyone please help?
my $first_num = $highest[0]; # print $first_nums gives 0.743499999999 +99 for (my $i=0; $i < @array; $i++) { if ($first_num) { if ($array[$i] == $first_num) { print "FOUND! \n"; } } }
In reply to Extracting numbers from arrays by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |