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:
while (<HEAD>) {
print;
}
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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.