vivapl has asked for the wisdom of the Perl Monks concerning the following question:
I have a reference to an array of references. To print contents I would do this:
is there any way to bypass the for loop and put the contents into a regular array without a loop? Is it even possible?for $i(0..$#{$ref}) { print $ref->[$i][0]; }
any help would be greatly appreciated.eg: @newarray= ....
Added code tags - dvergin 2003-04-02
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: array references
by Elian (Parson) on Apr 02, 2003 at 20:00 UTC | |
|
Re: array references
by pg (Canon) on Apr 02, 2003 at 20:18 UTC | |
|
Re: array references
by DrManhattan (Chaplain) on Apr 03, 2003 at 03:49 UTC |