in reply to how to store an array to a pseudohash?
use strict; use warnings; my $kind = 'alph'; my $prop = 'single'; my $slice = { kind => $kind, prop => $prop, item => [5..11] }; my @item_2 = @{$slice -> {item}}; my $num = scalar @item_2; map {print "num is $num the $_\n";} @item_2;
prints:
num is 7 the 5 num is 7 the 6 num is 7 the 7 num is 7 the 8 num is 7 the 9 num is 7 the 10 num is 7 the 11
Is this what you are after?
|
|---|