in reply to Re: Premature Error using CGI.pm
in thread Premature Error using CGI.pm
BTW - does anybody know why a shebang of:
#!/user/local/bin/perl
works on my machine?
I have no /user directory, so I would expect an error, but I got none. Is something going on under the hood?
Assuming you're talking about Apache, it doesn't use the first line, but instead relies on file types that are set up in the configuration file to determine what type of file a request is, and so as long as it's named "something.pl", it doesn't matter to Apache what the first line is. Of course, if you run it from the command line, you'll get the unknown file error.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Premature Error using CGI.pm
by a (Friar) on Feb 24, 2001 at 21:31 UTC | |
by tye (Sage) on Feb 25, 2001 at 01:04 UTC | |
by a (Friar) on Feb 25, 2001 at 10:02 UTC |