Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: array references

by DrManhattan (Chaplain)
on Apr 03, 2003 at 03:49 UTC ( [id://247666] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for $i (0..$#{$ref})
    {
        print $ref->[$i]->[0];
    }
    
  2. or download this
    my @newarray = map { $_->[0] } @$ref;