In the original post, he didn't escape the `$' in the replacement at all. But the post I responded to
did backwhack it, and that code was in a file, so there was no shell involved. Moreover, in the OP's second post, he backwhacked it 3 times, to get a backslash all the way through the shell into Perl, which would make the replacement not interpolate. There's a discrepancy between the original post and those two posts wrt what behavior is wanted.
You're right that this is a case where the /e modifier doesn't matter.