in reply to A Simple hash question
gives you:use Data::Dumper; %pets = ("dog", 1, "cat", 2, "pony", 2, "dog", 2,); print Dumper(\%pets); $pets{dog}=3; print Dumper(\%pets);
Data::Dumper is your friend!$VAR1 = { 'pony' => 2, 'cat' => 2, 'dog' => 2 }; $VAR1 = { 'pony' => 2, 'cat' => 2, 'dog' => 3 };
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: A Simple hash question
by chinamox (Scribe) on Oct 01, 2006 at 15:51 UTC | |
by CountZero (Bishop) on Oct 01, 2006 at 18:13 UTC |