On Tue, May 01, 2001 at 11:28:02AM -0400, Dale Owens wrote:
> I am completely new to perl and this question may seem really lame,
> but I can't get the most basic script to work. I am trying to run
> this on my web host's server:
>
> #!usr/bin/perl
>
> print "Content-type: text/html\n\n";
> print "<html><body><h1>Hello World!\n</h1></body></html>";
One clue is that you should be able to run these scripts from
the command line as well:
[ ~/test/cgi-01 ] cat foo.pl
#!usr/bin/perl
print "Content-type: text/html\n\n";
print "<html><body><h1>Hello World!\n</h1></body></html>";
[ ~/test/cgi-01 ] chmod 755 foo.pl
[ ~/test/cgi-01 ] ./foo.pl
./foo.pl: Command not found.
[ ~/test/cgi-01 ]
Your problem is that your shebang line should be "#!/usr/bin/perl".
Attention to detail!
--
If the organizational structure is threatening in any way, nothing is
going to be documented until it is completely defensible.
- F. Brooks, _The Mythical Man-Month_