Re: Reference Hash to an array

2003-07-08 Thread Rob Dixon
Gene Mat wrote: > Hi I trying out a new module. Everything is working execpt I can seem to > list out a reference hash to an array. How can I print out the contents of > the array? > > I am able to get the all the keys of refrence hash by just using a > > foreach tag (keys %$REFHASH) {"print $tag $

RE: Reference Hash to an array

2003-07-07 Thread Gupta, Sharad
If i get it right, ur structure looks like: my $ref = { key1 => [qw(v1 v2...)], key2 => ... }; one can do. foreach my $key(keys %$ref) { print "$key: @{$ref->{$key}}\n"; } -sharad -Original Message- From: Gene Mat [mailto:[EMAIL P