You have to dereference $AoHref to look like an array. That's the @{$AoHref} part. And you have to create a new arrayref to feed to $newAoH. That's the [ ......... ] part... unless you really meant to feed @newAoH (a proper array), instead of $newAoH (a reference to an array).
Dave
In reply to Re: Grep and AoH references
by davido
in thread Grep and AoH references
by bradcathey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |