CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
part of HTML is missing!!

 



iznogood
Deleted

Feb 8, 2001, 6:22 AM

Post #1 of 2 (140 views)
part of HTML is missing!! Can't Post

I'm having a problem with perl sending HTML to the browser. My script loads a HTML file and prints it to the browser, but SOMETIMES the first and last lines of HTML is missing!! Have anyone expirienced same problem?

I'm running ActivePerl 5.6 on a Win2000 server. The script looks something like this:

open (file,"edit.html");
@html=<file>;
close (file);

print @html;
exit;





muinatit
Deleted

Feb 8, 2001, 2:06 PM

Post #2 of 2 (135 views)
Re: part of HTML is missing!! [In reply to] Can't Post


Code
open (FILE, "edit.html") || die $!; 
print $_ while (<FILE>);
close (FILE);
exit;

muinatit
muinatit@hotpop.com

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives