Perl: the Markov chain saw | |
PerlMonks |
customize string issueby emilford (Friar) |
on Jul 16, 2003 at 01:20 UTC ( [id://274652]=perlquestion: print w/replies, xml ) | Need Help?? |
emilford has asked for the wisdom of the Perl Monks concerning the following question:
I have a variable that I want to allow users of my script to be able to customize. It's simply a variable that they can use to store a couple of sentences to be sent out in an email. I'm wondering what the best approach for doing this would be. I initially had it in a set of single quotes, but people would constantly email me saying the script wasn't working correctly and 9 times out of 10 it was because they included a single quote in the variable value without escaping it. I can't blame them if they just didn't know, but I need a work around for this. Is there a construct I could use to avoid any "illegal" characters someone could add to the variable value?
Back to
Seekers of Perl Wisdom
|
|