The stupid question is the question not asked | |
PerlMonks |
Re^7: filtering an arrayby philiprbrenan (Monk) |
on Sep 01, 2012 at 23:19 UTC ( [id://991213]=note: print w/replies, xml ) | Need Help?? |
One or more of the elements of the array @positions is undefined. The easiest way to check this is like this:
This will give you a printout of the value of each element in array @positions. I expect we will see that some are "undef" meaning undefined. It will be these elements that are causing the problem.
In Section
Seekers of Perl Wisdom
|
|