Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
printing a single quote in a string when using -e optionby yossarian (Novice) |
on Jul 24, 2003 at 06:41 UTC ( [id://277449]=perlquestion: print w/replies, xml ) | Need Help?? |
yossarian has asked for the wisdom of the Perl Monks concerning the following question:
Nameste monks, Here is newbie question that I am hoping a more enlightened monk can provide some guidance on: What are some ways that a single quote can be printed as part of a string using the print function when using the -e option. print " \' " works as I want it to when part of a .pl file, but perl -e 'print "\'"' and any variants that I have come up with so far don't and I'm unsure of the way to get around this. thanks.
Back to
Seekers of Perl Wisdom
|
|