This is one way:
map { s/this/that/; $_ } do { $str };
You can substitute [$str]->[0] for do { $str } if you'd like.
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perlhacker, who'd like a job (NYC-area)
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;