Exactly. Unless "." is in $ENV{PATH}, (which is probably won't be when the CGI is invoked), your open() will fail. Replace open(PS, "ejbreg.pl |") || die "Can't open script"; with open(PS, "./ejbreg.pl |" ) or die "Can't open script: $!"; And depending on the webserver, you may need to chdir() to get where you need to be.
In reply to Re: Re: Differences between CGI and command-line versions of scripts?!?
by dws
in thread Differences between CGI and command-line versions of scripts?!?
by jbwiv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |