in reply to Printing a Html Page
and don't forget to use strict and warnings. You might want to also make sure that material_office.html is readable by the webserver (chmod 644).my $pageht = do {local $/;<HTMLP>};
Update - ahh good catch dimmesdale! Yes, you cannot open a file like that:
If this file is on the same server as your script, open it directly, and do you mean .htm or html?$locat = "www.nsn.org/elghome/material_office2.htm";
If this file is on another server, use LWP.my $locat = '/path/to/htdocs/elghome/material_office2.htm'; open FILE, $locat or die "can't read $locat: $!";
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (jeffa) Re: Printing a Html Page
by Anonymous Monk on Jul 23, 2002 at 19:14 UTC |