It seems possible that you didn't configure the results path for the webserver. If the Perl script works when run from the command line, but not from the browser, then this is a big clue. For example, if your webserver is Apache 1.3, then an alias is one way of configuring a path rather than relying only on path specification from the script.