my $timestamp = localtime time;
print <html><body>$timestamp</body></html>;
However, the $timestamp will not work if the same code is imported from a template file - it is printed out as text.
How do I get Perl to interpret code from a template file as literal (during a print command)?
.
Thanks - JZ
welcome to WebmasterWorld [webmasterworld.com], jz!
you could look into embperl [perl.apache.org] or Mason [masonhq.com] or the Text::Template perl module [search.cpan.org].