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?

Re: Getting Columns

2002-10-18 Thread Michael Fowler
On Wed, Oct 16, 2002 at 03:10:14PM -0600, Brady Fausett wrote: > I recently was reading a posting regarding getting table names and then > retrieving colmn names from another post. I have been trying to make a > perl program that I have written (with DBI) to be more object oriented. > To be able