Re: getting columns of 2D array

2006-09-22 Thread Bryan R Harris
> Aditi Gupta wrote: >> Hello Everybody, > > Hello, > >> We can get rows of a 2D array as >> >> $aref = $AoA[$i]; >> print @$aref; #will print row 'i' as an array >> >> How can I print column 'i' as an array using references? Is there any >> other way which doesn't require two 'for loops' to

Re: getting columns of 2D array

2006-09-22 Thread John W. Krahn
Aditi Gupta wrote: > Hello Everybody, Hello, > We can get rows of a 2D array as > > $aref = $AoA[$i]; > print @$aref; #will print row 'i' as an array > > How can I print column 'i' as an array using references? Is there any > other way which doesn't require two 'for loops' to print the columns?

getting columns of 2D array

2006-09-22 Thread Aditi Gupta
Hello Everybody, We can get rows of a 2D array as $aref = $AoA[$i]; print @$aref; #will print row 'i' as an array How can I print column 'i' as an array using references? Is there any other way which doesn't require two 'for loops' to print the columns? Thanks in advance, Aditi -- To unsubscr