Tip #2 from the Basic debugging checklist: print. Add more prints inside your for loop. It is likely that $a is beyond the last element of the @matching_values array.
for($a=0;$a<=scalar(@hfr);$a++) { my @matching_indices=indexes {$hfr[$a]}@gl; my @matching_values=@gl[@matching_indices]; print "a=$a\n"; use Data::Dumper; print Dumper(\@matching_indices); print "$matching_indices[$a]"; }
In reply to Re: use of uninitialized value in array
by toolic
in thread use of uninitialized value in array
by rocketperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |