in reply to Re: how to store an array to a pseudohash?
in thread how to store an array to a pseudohash?
my $slice = { kind => $kind, prop => $prop, item => 5..11 };
I don't really understand why I need use @{} here to dereference, can somebody explain it for more details? I am just a Perl newbie :)my @items = @{$slice -> {item}};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: how to store an array to a pseudohash?
by TGI (Parson) on Jun 30, 2008 at 17:24 UTC | |
|
Re^3: how to store an array to a pseudohash?
by toolic (Bishop) on Jun 30, 2008 at 14:08 UTC |