in reply to Basic help with mapping

There are several things that need fixing here: Here is maybe what you wanted to say:
my @AoH_new = map { ## store the result in an array my %h = %$_; ## make a copy of each hashref $h{title} =~ s/ /_/g; ## modify a value in the hash copy \%h; ## return a ref to that copy } @$AoH_orig;
Or even better, perhaps:
use Storable 'dclone'; my $AoH_new = dclone $AoH_old; ## copy the old structure ## change an item in each hash in the new copy $_->{title} =~ s/ /_/g for @$AoH_new;

Update: changed "$h->" to "$h" in my example. Thanks Errto.

blokhead