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


in reply to Escaping single quote in $string

Hey calebcall I think you have not tried with the last match you have mentioned.

my $string = q/hi it's mine test ' correct/; print $string if $string =~ s#\'#is#g;

Thanks, Mano