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
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
you need to learn about references.
read the:
perldoc perllol
here is the jist though.
@all = (\@array1, \@array2 ... ); # ... so on
to access first array and first element:
$all[0]->[0]; # i think or is it: $all[0][0]
> -Original Message-
> From: alex [mailto:[EMAIL PROTECTED]]
> S