mountain_drew has asked for the wisdom of the Perl Monks concerning the following question:
then i iterate through my array using a some for loops...@array = ( [ "A", "B", "C" ], [ "D", "E", "F" ], [ "G", "H", "I" ], );
this worked fine until i tried reading from a data file copying the file into an array. when i try to run it i get:for($col = 0; $col < $width; $col++) { for($row = 0; $row < $height; $row++) { $myString = $myString.$array[$row][$col]; } $myString =""; }
i tried splitting the file into lines then elements but nothing seems to work. can anybody help me??? -confused"Use of unitialized value in concatenation... blah, blah"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: 2 dimensional array
by kabeldag (Hermit) on Jun 23, 2008 at 05:43 UTC | |
by mountain_drew (Initiate) on Jun 23, 2008 at 06:38 UTC | |
by kabeldag (Hermit) on Jun 23, 2008 at 07:43 UTC | |
by ysth (Canon) on Jun 23, 2008 at 07:54 UTC | |
by mountain_drew (Initiate) on Jun 23, 2008 at 07:53 UTC | |
by mountain_drew (Initiate) on Jun 29, 2008 at 09:13 UTC | |
by ysth (Canon) on Jun 23, 2008 at 07:48 UTC | |
by mountain_drew (Initiate) on Jun 23, 2008 at 08:29 UTC | |
by ysth (Canon) on Jun 23, 2008 at 14:34 UTC | |
Re: 2 dimensional array
by starbolin (Hermit) on Jun 23, 2008 at 05:50 UTC | |
by ysth (Canon) on Jun 23, 2008 at 07:51 UTC | |
Re: 2 dimensional array
by jethro (Monsignor) on Jun 23, 2008 at 15:17 UTC | |
by mountain_drew (Initiate) on Jun 24, 2008 at 03:37 UTC | |
Re: 2 dimensional array
by GrandFather (Saint) on Jun 24, 2008 at 03:20 UTC | |
by mountain_drew (Initiate) on Jun 24, 2008 at 04:06 UTC |