Midnite has asked for the wisdom of the Perl Monks concerning the following question:
Now I put most of that code into another working script, one of the many I want to use it on. And strange enough, it does not work. I have gone through varios tests to see why, but the only thing I know, is that for some reason it is not reading it in correctly. The code I use in the other script is:#!/usr/local/bin/perl -w use CGI qw(:standard :html3); #print "hello\n"; $locat = "../../htdocs/elghome/material_office.html"; print header, start_html; open (FILE1, $locat) || die ("Material_Office open failed: $!"); while (<FILE1>) { $page .= $_; } close(FILE1); print "$page\n"; print end_html;
Further down I use this code to print it out:$locat = "www.nsn.org/elghome/material_office2.htm"; open (HTMLP,$locat); while (<HTMLP>) { $pageht .= $_; } close(HTMLP);
I do get the 2 lines but, with nothing inbetween. And it works in a script all by itself. If anyone has suggestions, I would be more than happy to try anything. Thanks, Midnite<hr> <p>$pageht <hr>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: Printing a Html Page
by jeffa (Bishop) on Jul 23, 2002 at 16:56 UTC | |
by Anonymous Monk on Jul 23, 2002 at 19:14 UTC | |
|
Re: Printing a Html Page
by Ovid (Cardinal) on Jul 23, 2002 at 17:12 UTC | |
|
Re: Printing a Html Page
by dimmesdale (Friar) on Jul 23, 2002 at 16:57 UTC | |
|
Re: Printing a Html Page
by derby (Abbot) on Jul 23, 2002 at 16:57 UTC | |
|
RE: Printing a Html Page
by Midnite (Acolyte) on Jul 23, 2002 at 20:13 UTC |