Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Different ways of including files in a CGI Script

by tachyon (Chancellor)
on Feb 17, 2003 at 03:20 UTC ( [id://235867]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://235867]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-03-29 13:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found