Are you sure the lines in your file don't contain double-quotes? These would turn the JavaScript parameter into nonsense.
R ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 5:03 PM Subject: Content-type: application/x-javascript okay here is the thing, i have found this really neat piece of code when I add <SCRIPT SRC="http://www.mydomain.com/cgi-bin/test.cgi"></SCRIPT> and test.cgi has the following code #!/usr/bin/perl print "Content-type: application/x-javascript\n"; print "Pragma: no-cache\n\n"; print "document.writeln(\"test\");"; #######end of script. it prints test on the web page where i inserted the line however when i change the script to #!/usr/bin/perl print "Content-type: application/x-javascript\n"; print "Pragma: no-cache\n\n"; { open LOG,"mytext.dat"; @log_lines = <LOG>; close LOG; foreach $line (@log_lines){ print "document.writeln(\"$line\");"; } } ########end script the page loads but it says it has errors now mytext.dat is only text all i am trying to do is be able to read the file and have it print to my html doc without using SSI's i have seen it done, i am just not sure how it is being acomplished has anybody played with these functions or know where i can find documentation on it.? thanks Ambrose -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]