We don't bite newbies here... much | |
PerlMonks |
Re: Different ways of including files in a CGI Scriptby Coruscate (Sexton) |
on Feb 17, 2003 at 01:42 UTC ( [id://235847]=note: print w/replies, xml ) | Need Help?? |
You've got the basic idea on how to open up a file and print out its contents to the client. I don't understand how HTTP:: or LWP:: modules would help you with this. I see that you named the file handle HEAD, so does this mean that the file only contains the HTTP headers to be sent out?? Anyhow, you can do the following to print out the entire contents of a file to the client:
Hrmm... 5.006 does support warnings, strict, $! for error, and file handles, right? {grin} BTW, I meant to mention: if you're looking for a box to work on, read up jcwren's home node for information on getting an account on the box he so generously provides for members of perlmonks. I'm not sure he'd appreciate an actual business being run from it, but if all you need is a personal account to test with, I'm sure he'd be happy to supply you with one :) If the above content is missing any vital points or you feel that any of the information is misleading, incorrect or irrelevant, please feel free to downvote the post. At the same time, reply to this node or /msg me to tell me what is wrong with the post, so that I may update the node to the best of my ability. If you do not inform me as to why the post deserved a downvote, your vote does not have any significance and will be disregarded.
In Section
Seekers of Perl Wisdom
|
|