in reply to finding '

quotemeta is one but not only way to do this...

Best wishes,
I.R.Baboon.

Replies are listed 'Best First'.
Re: Re: finding '
by greenFox (Vicar) on Jun 15, 2002 at 13:26 UTC

    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';