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:
Printing to file in ePerl

 



abockover
Deleted

Jan 26, 2001, 6:45 AM

Post #1 of 1 (529 views)
Printing to file in ePerl Can't Post

A few days ago, I installed ePerl as an apache module.
When I try to print to a file within an ePerl document, the file is created, but what I want to print to the file is printed to the document ePerl will print to the browser.

For example:

<html>
<body>
<?
open(FILE,">test.txt");
print FILE "bla bla, it works.";
close(FILE);
!>
<p>I have just printed bla bla it works to a file.</p>
</body>
</html>
------------------------------
Now, this is what would be printed to the browser:

bla bla, it works.
I have just printed bla bla it works to a file.

The file was created, but "bla bla, it works" is not in the file.

Does anyone know how to solve this?

-Aaron


 
 


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

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