Problems? Is your data what you think it is? | |
PerlMonks |
Replacing single quotes to two single quotes inside mapby Anonymous Monk |
on Nov 10, 2017 at 21:08 UTC ( [id://1203138]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks! I have a call to SQL store procedure than I need to filter for single quotes and replace with two single quotes, I am trying to see if there is a way to do this search and replace inside of "map", here is the code sample I am referring to: If in "$data->{$_}" has a string like; "Maria's" I need it converted to "Maria''s".
Thanks for looking!
Back to
Seekers of Perl Wisdom
|
|