[wellylug] Perl scripts not executing in Firefox

andrej at paradise.net.nz andrej at paradise.net.nz
Thu Jan 11 11:41:40 NZDT 2007


Quoting John Durham <johndurh at spunge.org>:

> While testing server systems this morning, I found that a perl script 
> such as this:
> 
> #!/usr/bin/perl
> 
> print "Content-type: text/html\n\n";
> print "Hello, world!\n";
> 
> exit;
> 
> This will execute in at the root command prompt, but when invoked in 
> Firefox, it just lists as plain text. Other scripts respond the same 
> way. Some insight on this would help get the website functions
> operational.
Well ... if you didn't put the file in the CGI directory of your
web-server, and pointed firefox at that this is working as designed.

perl isn't a client-side scripting language like JavaScript.






More information about the wellylug mailing list