in reply to Having an Issue updating hash of hashes
That overwrites the contents of $people in each loop. Try:$people = { "$cntr" => { ..
Also, if $cntr is always a unique integer, an array-ref may be a better choice, to keep the information in sequence:$people -> { $cntr } = { whatever...};
$people ->[ $cntr] = { whatever .. };
What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?
-Larry Wall, 1992
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Having an Issue updating hash of hashes
by perlguyjoe (Novice) on Jul 05, 2014 at 17:46 UTC |