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


in reply to Escaping single quote in $string

How do those not work? How does $string look before and after, and what would you have expected?

What do you escape it for? (shell? SQL? some other target language?)