in reply to Re: Regex During Map Function
in thread Regex During Map Function

Use do to use a block containing several statements in an expression:
do { s/foo/bar/; $_ }
Although, once you're using map, you don't need do: just use the block. And no comma.