in reply to Re^2: Referencing/returning array of hashes from sub
in thread Referencing/returning array of hashes from sub
Dereference your references as you need to work with them. There's no syntactic need to expand them into non-references. Instead of:
my @expanded = @$reference; for my $element (@expanded) { ... }
... you can just as well write:
for my $element (@$reference) { ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Referencing/returning array of hashes from sub
by PoGGiE (Initiate) on Jun 08, 2011 at 20:26 UTC | |
by chromatic (Archbishop) on Jun 08, 2011 at 21:23 UTC | |
by planetscape (Chancellor) on Jun 09, 2011 at 03:57 UTC |