Also, an expression such as
{ KEYNAME => [ PRICE => 0, CODE => 'code value 1', LABEL => 'RED' ] }
suggests you may be mistaking an array element for part of a hash key/value pair. The => (fat arrow) operator is just a fancy comma (see Comma Operator), it does nothing | nothing in and of itself to form key/value pairs. The expression above is equivalent to
{ KEYNAME => [ 'PRICE', 0, 'CODE', 'code value 1', 'LABEL', 'RED' ] }
(update: in which an anonymous array is initialized with a set of unrelated, i.e., unpaired, elements).
Give a man a fish: <%-{-{-{-<
In reply to Re^3: hash array question
by AnomalousMonk
in thread hash array question
by Tony23
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |