|
|
| Just another Perl shrine | |
| PerlMonks |
Re^2: Single Quotes - how to avoid any escape processing?by smls (Beadle) |
| on Jan 31, 2013 at 21:38 UTC ( #1016397=note: print w/ replies, xml ) | Need Help?? |
|
If you have an end delimiter and you want to allow this end delimiter to appear literally you need to escape it But why is this always considered a necessary feature for a quoting delimiter, trumping all other considerations like avoiding headaches like the OP describes? For a language that has so many different quoting delimiters as Perl does, I would have expected there to be at least one that would simply drop the pedantic "must allow each and every Unicode character to appear in the string literal" requirement and do no escaping at all. In addition, I'm not convinced that introducing a separate escape character (in this case, backslash) is technically necessary for implementing single-quoted strings that are supposed to allow single-quotes to appear inside them.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||