in reply to Printing Code

Yes, try some form of non-interpolating quoting. Searching ought to come with some useful hits in the man pages.

--
perl -pe "s/\b;([st])/'\1/mg"