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
|
---|
In Section
Seekers of Perl Wisdom