I'm trying to do something like this:

<script src=http://myserver.com/cgi-bin/printscript.cgi></script>

and on my server, I have a script like this:

#!/usr/bin/perl

use strict;

print "document.write('ok')";

And of course it doesn't seem to be working.  In mozilla, I get an error 
like this:

Error: syntax error
Source File: http://myserver.com/cgi-bin/printscript.cgi
Line: 1
Source Code:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">


Which makes me think my script is returning some kind of header, when 
all I want it to do is print some stuff that may or may not be valid 
javascript.


Reply via email to