http://www.perlmonks.org?node_id=438866


in reply to Escaping characters in one-liners

For bourne-shell-likes you use single quote ('), as mentioned in previous post. If you want to print single quotes from within your one-liner, you can use
print chr(047)
Makes it harder to keep your code on 1 line though ...