Hanken has asked for the wisdom of the Perl Monks concerning the following question:
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to store an array to a pseudohash?
by pc88mxer (Vicar) on Jun 28, 2008 at 01:43 UTC | |
|
Re: how to store an array to a pseudohash?
by toolic (Bishop) on Jun 28, 2008 at 01:45 UTC | |
|
Re: how to store an array to a pseudohash?
by TGI (Parson) on Jun 28, 2008 at 16:40 UTC | |
by Hanken (Acolyte) on Jun 29, 2008 at 11:46 UTC | |
by TGI (Parson) on Jun 30, 2008 at 17:24 UTC | |
by toolic (Bishop) on Jun 30, 2008 at 14:08 UTC | |
|
Re: how to store an array to a pseudohash?
by philipbailey (Curate) on Jun 28, 2008 at 08:36 UTC | |
|
Re: how to store an array to a pseudohash?
by Narveson (Chaplain) on Jun 28, 2008 at 11:57 UTC | |
by Anonymous Monk on Jun 28, 2008 at 12:25 UTC |