Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^7: filtering an array

by philiprbrenan (Monk)
on Sep 01, 2012 at 23:19 UTC ( #991213=note: print w/ replies, xml ) Need Help??


in reply to Re^6: filtering an array
in thread filtering an array

One or more of the elements of the array @positions is undefined. The easiest way to check this is like this:

use Data::Dump qw(pp); pp([@positions]);

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.


Comment on Re^7: filtering an array
Download Code
Replies are listed 'Best First'.
Re^8: filtering an array
by prbndr (Acolyte) on Sep 01, 2012 at 23:39 UTC

    i don't see any that are "undef. that's a little strange. the data dumper output prints:

    9031,

    "A"

    etc. etc. this is a little strange...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2015-07-29 11:16 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 (263 votes), past polls