Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
So, I keyed the hash by employee name and the value is a reference to an array of info Then I can print all the values like this:$employee=$infor[ 0 ]; shift @infor; $sheet{$employee}={data => [@infor]};
and it prints:foreach (keys $sheet){ print "\n$_ @{$sheet{$_}->{data}}"; }
Edit by castaway - added code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dereferencing Hashes of Arrays
by Errto (Vicar) on Mar 13, 2005 at 05:47 UTC | |
by Anonymous Monk on Mar 13, 2005 at 06:42 UTC | |
|
Re: Dereferencing Hashes of Arrays
by Roy Johnson (Monsignor) on Mar 13, 2005 at 12:51 UTC |