in reply to A Functional Substitute
sub cmap (&@) { map { local $_ = $_; $_[0]->(); $_ } @_[1..$#_]; } my @copy = cmap { s/a/b/ } @array; [download]