|Perl: the Markov chain saw|
Re^4: Single Quotes - how to avoid any escape processing?by smls (Friar)
|on Jan 31, 2013 at 22:57 UTC||Need Help??|
> empty string?
I don't think that would create a problem, since the search for the end delimiter would begin right after the start delimiter, not including it.
> What's easy for you might be the horror for someone else.
Well, one way to compare & contrast DWIM "horrors" would be to consider the likelihood of unsuspecting users "falling into the trap" while just going about their normal routine programming.
Many who learn Perl come to colloquially know single-quoted strings as "like normal strings, but without escaping and interpolating". Then they go about using them, with perfect results, until at some point they are bitten by weird bugs like the OP described.
One the other hand, the same user would probably not write something like
In both cases, people will not know how exactly things work until they are taught.