in reply to Re^6: the annoying keys "key" and "value"
in thread the annoying keys "key" and "value"
If it's pathalogical, what would be nonpathological?
$param->{'key'} # { key => $key, value => $value }
is slightly clearer than
$param->[0] # [ $key, $value ]
and much more clearer than
(keys(%$param))[0] # { $key => $value }
Update: I missed this:
The non-pathological representation would have: $hash{$key}=[$value1, $value2, $value3,...]
But it's not true. That doesn't maintain order, so the question remains. What would be nonpathological?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: the annoying keys "key" and "value"
by jabowery (Beadle) on Dec 23, 2010 at 23:38 UTC | |
by ikegami (Patriarch) on Dec 24, 2010 at 02:43 UTC | |
by jabowery (Beadle) on Dec 24, 2010 at 02:57 UTC | |
by ikegami (Patriarch) on Dec 24, 2010 at 03:35 UTC | |
by jabowery (Beadle) on Dec 24, 2010 at 04:24 UTC | |
| |
by Anonymous Monk on Dec 24, 2010 at 03:09 UTC |