>
>
> If @coords is just an Array of Arrays then that should be:
>
> print grep { $_->[0] >= 0 } @coords;
>
>
> Your example thinks @coords is an Array of Arrays of Arrays.
>
>
> John
> --
>

print grep { $_->[0] >= 0 } @coords;

Just prints the memory adress:
ARRAY(0x29d459c)ARRAY(0x29d462c)ARRAY(0x29d46cc)

apparently I am not dereferencing the data structure correctly.

Below is a sample of what it looks like.

$VAR1 = [
          [
            1,
            1,
            '70',
            '90',
            undef
          ],
          [
            1,
            2,
            '200',
            '65',
            undef
          ],

Thanks for you time,

Chris

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to