in reply to Different ways of including files in a CGI Script

For modules that are pure Perl you can often get away with a cut and paste into your code. HTML::Template for example is a single module with no dependencies so you can do this:

# don't need to use the module (it's pre loaded ;-) # use HTML::Template; my $template = HTML::Template->new(filename => 'test.tmpl'); # blah blah # now paste the entire HTML template code into your script package HTML::Template; $HTML::Template::VERSION = '2.6';

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Replies are listed 'Best First'.
Re: Re: Different ways of including files in a CGI Script
by Anonymous Monk on Feb 17, 2003 at 16:49 UTC
    Thanks tachyon, It looks like it will work if I maintain the directory structure HTML/Template.pm I did the test script from this horrible windows machine and it worked, so I should be to put this on the server, thanks for your help.