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