in reply to Re^2: How to swap rows with columns?
in thread How to swap rows with columns?
for my $y (0..(@in-1)) { for my $x (0..(@{$in[$y]}-1)) {
I'm puzzled as to why you do the subtractions to find the upper bound of the arrays rather than use the $#array that Perl provides.
for my $y ( 0 .. $#in ) { for my $x ( 0 .. $#{$in[$y]} ) {
Cheers,
JohnGG
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: How to swap rows with columns?
by snopal (Pilgrim) on Oct 10, 2007 at 02:14 UTC |
In Section
Seekers of Perl Wisdom