in reply to how to store an array to a pseudohash?
Others have explained how to store an array in a hash. It might also be worth mentioning that your code is equivalent to:
Which is also equivalent to:my $slice = { kind => $kind, prop => $prop, item => 5, 6, 7, 8, 9, 10, 11 };
my $slice = { kind => $kind, prop => $prop, item => 5, 6 => 7, 8 => 9, 10 => 11 };
|
---|
In Section
Seekers of Perl Wisdom