in reply to Grep and AoH references
Update: I was too hasty and only fixed the dereference problem. Obviously, to create a new AoH, you have to actually create the reference. So I've put the brackets on the expression.my $newAoH = [grep { !($_->{'name'} eq "fred") } @$AoHref];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Grep and AoH references
by de-merphq (Beadle) on Dec 30, 2004 at 16:49 UTC | |
|
Re^2: Grep and AoH references
by bradcathey (Prior) on Dec 30, 2004 at 16:50 UTC |