I am having problems getting a perl program to execute through my web
server, and have started to run some stand-alone tests.
Here is a short dump of my session - the first section is where I am trying
to call the program directly, and the second is where I am executing it
through the perl program directly.
/ecommerce/webpages/cgi-bin--> getinv.pl
getinv.pl[13]: use: not found
getinv.pl[14]: use: not found
getinv.pl[16]: syntax error at line 17 : `{' unexpected
/ecommerce/webpages/cgi-bin--> perl getinv.pl
supply returned = 96
demand returned = 20
Status: 200
Content-Type: text/plain
Available: 76
Here is the start of this file:
#!/usr/local/bin/perl
#
# Install (a modified version of) this program in your webserver's cgi-bin
# directory.
#
# This demo program handles a request to return inventory information for
# .catalog=&.id=_fake_yahoo_item_&.code=_fake_yahoo_code_
# It returns the item availability information as its response.
#
use strict;
use DBI;
if ($ENV{'REQUEST_METHOD'} ne "POST") {
print "Failed due to missing post.\n";
die("Expecting a POST, bailing");
}
Can anyone tell me what I have wrong? The web server indicates it cannot
execute the CGI script when I try to test it through a browser.
Thanks
Carlin Anderson
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]