in reply to Re^2: What does belg4mit's signature do?
in thread What does belg4mit's signature do?

Your shell has interpolated $1 before it came to perl

You may try perl -MO=Deparse -wpe 's/\b;([nmst])/\'$1/g'