N, Guruguhan (GEAE, Foreign National, EACOE) <[EMAIL PROTECTED]>
wrote:
:
: I have an array that is build like this
:
: foreach $i ( 0 .. @array1) {
:       foreach $j ( 0 .. @array2) {
:       $array3[$i][$j] = $array2[$j];
:       }
: } 

    Are you sure this code functions correctly? Looks like it
will add an extra column of undefined values and an extra row
each time it runs. It is equivalent to this code and results
in @array3 having one more row than @array1.

my @array3;
push @array3, [ @array2, undef ] foreach 0 .. @array1;

    Find the guy who wrote the program and club him a few
times.


: The array3 has "m" rows and "n" columns of data.
: 
: This code is written by some one else and I am trying to get 
: the statistics for each of the column data stored in array3. 
: Before getting the statistics, I wanted to sort each column 
: data of the array3 in ascending order. Can some one tell me 
: how do I this?  


    Do you know how to numerically sort one column? There all
the same, except that column on the end which is not numeric.

HTH,

Charles K. Clarkson
-- 
Mobile Homes Specialist
254 968-8328


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to