in reply to Nested Data Structure Problems
You probably want something more like:
But, you could avoid those temporary variables altogether by just doing:my %rec = {LastName=>$result[1], FirstName=>$result[2], TimeIn=>$res +ult[3], TimeOUT=>$result[4]}; my $thisrecord = \%rec;
use Disclaimer::Standard; # the code above is untested and may contain errorspush @{$ID{$result[0]}}, {LastName=>$result[1], FirstName=>$result[2 +], TimeIN=>$result[3], TimeOUT=>$result[4]};
Alan
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Nested Data Structure Problems
by mrmick (Curate) on Jul 27, 2000 at 20:57 UTC |