in reply to What's Odd about the number of elements in this hash assignment?
You are assigning a hash list, not a hash reference, to the key case_001. Try this instead:
my %test_subscriptions = ( 'case_001' => { 'fname' => "$lname", 'lname' => "$fname", 'zip' => '02486', 'email' => 'test-' . $email . '\@mydomain.com', 'lists' => ['news','updates'], }, );
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What's Odd about the number of elements in this hash assignment?
by chromatic (Archbishop) on Oct 22, 2006 at 23:11 UTC | |
|
Re^2: What's Odd about the number of elements in this hash assignment?
by johngg (Canon) on Oct 22, 2006 at 22:05 UTC |