Re: array of arrays :: part2

2002-07-05 Thread drieux
On Friday, July 5, 2002, at 08:31 , Connie Chan wrote: [..] > If you want to know what 'fields' inside %Data : > @DataKeys = keys(%Data); > print "@DataKeys"; # So you get "Code, Birth, Name"... > # However, the elements order in @DataKeys is not base > #on how's the order you create your key fie

Re: array of arrays :: part2

2002-07-05 Thread Connie Chan
Well, I don't know how to pick a reference like this... but I guess using a hash of array may also fulfill your job... my @code = ('001', '002', '003', '004'); my @name = ('Joe', 'May', 'Bob', 'Foo'); my @birth= ('Jan', 'Feb', 'Mar', 'Apr'); my %Data = (Code=>\@code, Birth=>\@birth, Name=>\@name