shirkdog_perl has asked for the wisdom of the Perl Monks concerning the following question:
Greetings Fellow Monks,
Because of my hosting site not support many wonderful modules (Such as HTML::* HTTP::* and LWP::*), I have been working on code that is compatible with Perl 5.006 (Sorry, at least I have fun at perlmonk.org).
My question is, I figured out a way to include an html file as a string, then setting up a loop to print the entire thing, such as a header and footer for a web page:
However, as I hope some of the monks will point out, the filehandlers will cost performance. I have seen this as it loads. So what I am faced with is no mod_perl and no modules. However, I am trying to make this work for now until I can get my own server to host my domain. Once again I am most humble to the knowledge of the monks.while (<HEAD>) { print; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Different ways of including files in a CGI Script
by Coruscate (Sexton) on Feb 17, 2003 at 01:42 UTC | |
by shirkdog_perl (Beadle) on Feb 17, 2003 at 01:52 UTC | |
by tachyon (Chancellor) on Feb 17, 2003 at 03:04 UTC | |
Re: Different ways of including files in a CGI Script
by tachyon (Chancellor) on Feb 17, 2003 at 03:20 UTC | |
by Anonymous Monk on Feb 17, 2003 at 16:49 UTC |
Back to
Seekers of Perl Wisdom