Here’s an idea: if you use assignment to globs, you can do it with local from within the doc function. That way, you could conjure the element-name functions into existence for the duration of document construction, and have them wink out of being as soon as the document is completed.
Makeshifts last the longest.
In reply to Re^3: Embedding a mini-language for XML construction into Perl
by Aristotle
in thread Embedding a mini-language for XML construction into Perl
by tmoertel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |