NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Maybe just right with a possible tweak (Score:1)
It may be just right. Mainly because not having so many delimiters could be worse: requiring the need for hard-to-read escaping.
On another note, maybe one of the delimiters of the mentioned template piece could disappear, by writing something like:
where the
qqfilter would add the leading and trailing quotes and would take care of any necessary entity-escaping. It hardly contributes to the original intent of your note, but it improves on the correctness of producing HTML attribute values. (The assumption "this never has characters that need escaping" is an invitation for future pain.)Reply to This