vels has asked for the wisdom of the Perl Monks concerning the following question:
I like to get the same values here too . when i say a3[0][2][1] i should get the elementsub multi() { @a1; @a2=\@a1; @a3=\@a2; Assigned values to a3[$i][$j][$k] // when i print a3 all the ranges of i,j,k its printing good. return \@a3; } my @arrMain = multi();
Similarly i should pass a 3D array to a subroutine & get the retun 3 d array.
It looks like a simple but i am looking for help.... if any one can ..
Thanks in advance vel
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Returning Multidimensional array from subroutine to main code
by Athanasius (Archbishop) on Oct 19, 2013 at 03:26 UTC | |
|
Re: Returning Multidimensional array from subroutine to main code ;
by marinersk (Priest) on Oct 19, 2013 at 05:24 UTC |