Re: Printing an array within a hash

2006-10-02 Thread John W. Krahn
Johnson, Reginald (GTI) wrote: > I am trying to print the contents of the array from within the hash. I > see that I can do it by > > print "$name: $items[0][0] $items[0][1] $items[0][2] $items[0][3] \n " > > Is there a better way to accomplish this, especially if I don't know the > number of i

Printing an array within a hash

2006-10-02 Thread Johnson, Reginald \(GTI\)
I am trying to print the contents of the array from within the hash. I see that I can do it by print "$name: $items[0][0] $items[0][1] $items[0][2] $items[0][3] \n " Is there a better way to accomplish this, especially if I don't know the number of items in the array. Here is the code: