in reply to CGI script returns no values in browser but is ok on command line?

If it works on the commandline, then the problem is in the webserver's setup. Some things to look for:

My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
  • Comment on Re: CGI script returns no values in browser but is ok on command line?

Replies are listed 'Best First'.
Re^2: CGI script returns no values in browser but is ok on command line?
by gudmo (Novice) on Jan 25, 2007 at 20:30 UTC
    scrict is no in with all variables defined under the my command as thus
    use strict; use CGI qw(:standard); my ($oracle,@oraarray,@rbarray,$rbport,$host,@host,$kjarnavelar, $i, $ +start, $rbports, $oraports, $rbarray, $oraarray);
    I also tried defining a $world variable, assigning Hello to it and printing it in the table and that works fine. The webserver is not chrooted and I'm running the script in commandline as the same user as the webserver runs on and it still only works in command line.
      In contrast is probably best to explain The HTML code is presented but without the values I insert into the arrays.. The problem seems to be that the foreach loop doesn't run or the telnet doesn't run and no values are generated.