($var =~ s/foo/bar/ ? $var : $var) [download]
In reply to Re: Regex During Map Function by wagnerc in thread Regex During Map Function by deMize