in reply to Hash-O-Array Help
Use parens instead of curly braces when defining a hash
my %H1 = ( 'THINGS' => ['thing1', 'thing2'], 'PEOPLE' => ['andy', 'margot', 'dave', 'joe'], );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Hash-O-Array Help
by Anonymous Monk on Oct 29, 2008 at 23:36 UTC | |
by ccn (Vicar) on Oct 29, 2008 at 23:41 UTC | |
by toolic (Bishop) on Oct 29, 2008 at 23:46 UTC |