emergancy embperl with text::template

TeeJay on 2007-09-06T15:34:55

So I agree to do a quick cgi script for somebody, after agreeing I discover that it's shared hosting on a windows box, with perl, but no way to install modules or do anything remotely useful.

Text::Template to the rescue! I could just embed the HTML directly into the script, but - yuck!

With a couple of very small modifications, I copy text::template inline at the end of the script, and hey presto : run anywhere embperl/templating.

HTML::Template would be well suited to this project, but this will do at a push.