igor1212 has asked for the wisdom of the Perl Monks concerning the following question:
I need help on multidimensional array:
I'm using this code to update the array and print it out
push (@Cdevices, $UnitID, $fileno); push (@Mdevices, \@Cdevices); for ($k=0; $k<=$#Mdevices; $k++) { print $Mdevices[$k][0],"\n"; } $k=0;
I want to print all UnitID's from Mdevices array
But it always prints out only the first record from my Mdevices
Do you know, what I'm doing wrong?
Thanks in advance!
Igor
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Multidimensional array
by svenXY (Deacon) on Dec 10, 2008 at 13:48 UTC | |
by gone2015 (Deacon) on Dec 10, 2008 at 17:21 UTC | |
by igor1212 (Novice) on Dec 10, 2008 at 19:43 UTC | |
|
Re: Multidimensional array
by toolic (Bishop) on Dec 10, 2008 at 13:51 UTC | |
|
Re: Multidimensional array
by Bloodnok (Vicar) on Dec 10, 2008 at 13:45 UTC | |
by almut (Canon) on Dec 10, 2008 at 15:57 UTC | |
by Bloodnok (Vicar) on Dec 10, 2008 at 16:10 UTC | |
|
Re: Multidimensional array
by GrandFather (Saint) on Dec 10, 2008 at 23:12 UTC |