pigal has asked for the wisdom of the Perl Monks concerning the following question:
@arr1=([1,2,3],[4,5,6],[7,8,9]); @arr2=([11,22,33],[44,55,66],[77,88,99]); @garr=magic(arr1,arr2) #([1,2,3,11,22,33],[4,5,6,44,55,66],[7,8,9,77,88,99])
but 50000 script loop iterations kills my weak server. (rows has ~n*10 cells)for (my $i=0;$i<scalar(@arr1);$i++) { $garr[$i]=(@$arr1[$i],@$arr2[$i]); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Expanding Two demensional arrays
by dragonchild (Archbishop) on Jan 29, 2007 at 14:11 UTC | |
by pigal (Novice) on Jan 30, 2007 at 11:57 UTC | |
by dragonchild (Archbishop) on Jan 30, 2007 at 13:12 UTC | |
|
Re: Expanding Two dimensional arrays
by davorg (Chancellor) on Jan 29, 2007 at 14:14 UTC | |
by pigal (Novice) on Jan 30, 2007 at 11:59 UTC | |
|
Re: Expanding Two demensional arrays
by Tanktalus (Canon) on Jan 29, 2007 at 16:09 UTC | |
by pigal (Novice) on Jan 30, 2007 at 11:48 UTC | |
|
Re: Expanding Two demensional arrays
by Sagacity (Monk) on Jan 29, 2007 at 18:02 UTC | |
|
Re: Expanding Two demensional arrays
by BrowserUk (Patriarch) on Jan 30, 2007 at 12:42 UTC | |
|
Re: Expanding Two demensional arrays
by pigal (Novice) on Jan 30, 2007 at 12:30 UTC |