in reply to Building a hash of employees.
Your Hash structure is fine. I would extend it a further bit and put all the 'names' in the array, thus you don't accidentally run into problems when there are 2 Mike.
$employee = { name => 'Mike Smith' , age => 31 , ...}; push @employees, $employee;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Building a hash of employees.
by tomhukins (Curate) on Jul 02, 2003 at 22:02 UTC |