($second = $first) =~ s/foo/bar/; [download]
In reply to Re: A Functional Substitute by friedo in thread A Functional Substitute by mrborisguy