Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I realize that I can use:%hash .= (a=>'a', b=>'b');
but was hoping for something more elegant/efficient.%hash = (%hash, a=>'a', b=>'b');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Adding multiple items to a hash
by markov (Scribe) on Mar 03, 2004 at 00:17 UTC | |
|
Re: Adding multiple items to a hash
by Paladin (Vicar) on Mar 02, 2004 at 23:08 UTC | |
|
Re: Adding multiple items to a hash
by Anonymous Monk on Mar 02, 2004 at 23:55 UTC | |
by Stevie-O (Friar) on Mar 03, 2004 at 00:14 UTC | |
|
Re: Adding multiple items to a hash
by Anonymous Monk on Mar 03, 2004 at 17:12 UTC |