in reply to How do I push values onto an existing hash?
Here's one way,
Since you have a default for the banana key, you shouldn't need to check its existence.my %param = ( apples => 'green', banana => 'yellow', @_ );
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How do I push values onto an existing hash?
by jaa (Friar) on Jul 10, 2003 at 10:39 UTC |