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.
The old adage... (Score:1)
Re:The old adage... (Score:1)
Re:The old adage... (Score:1)
I would expect Mason to parse it the way it does. To do it “correctly” it would have to parse the Perl code between the tags to find out whether the tag is a literal or embedded in a string or some suchlike, and attempt to do that would be foolproof. (Think, as a trivial example,
print q(</%perl>);— and you can make up much hairier ones.)A simple workaround is
print "</"."%perl>";.Reply to This
Parent
Re:The old adage... (Score:1)
A simple workaround is
print "</"."%perl>";Actually, :-)
"<\/%perl>"does the trick just fine