Actually quotemeta will quote all non alphanumeric characters which is rather more than the original querient was after :)
I would suggest some variant of: s#\'#\\\'#g;
--
my $chainsaw = 'Perl';
In reply to Re: Re: finding '
by greenFox
in thread finding '
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |