in reply to template
Please try not so hard to reinvent the wheel.
You should look at the tpage utility packaged with Template Toolkit, for example.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In Section
Code Catacombs