Agree with the above, but as a sidebar a couple of notes on coding style that might help readability (none critical, just some things I've picked up bashing around the Monastery):
So,
my %fruits = ( "Apples" => 3, "Oranges" => 6 ); print_hash(();
A great book: Perl: Best Practices.
Good luck!
In reply to Re: Modify a hash via its reference
by bradcathey
in thread Modify a hash via its reference
by Philippe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |