Alligator has asked for the wisdom of the Perl Monks concerning the following question:

Hi everyone, I need some help on the following problem. I' was trying out CGI::Application and read a couple of articles from redantigua.com. I tested out the sample article from the site.

http://www.redantigua.com/cgi-bin/h...rld.cgi-app2.pl

This example works perfectly on the redantigua site.
But, when i downloaded the example I found a problem. The links work sometime and most of the time both the links doesn't show any browser output even when the URL changes.

is it anything to do with browse cache problem..?? if yes how to solve this.?? I've tested this example in Mozilla/Linux, and my browser cache settings are "every time i view the page".

Thanks for your precious time.
  • Comment on Help with simple CGI::Application example

Replies are listed 'Best First'.
Re: Help with simple CGI::Application example
by simonm (Vicar) on Apr 14, 2004 at 15:19 UTC
      I got it. Its working perfectly now. Previously my scripts were in /tmp/perl/cgitest which has a scriptAlias in httpd.conf, now i've moved them to cgi-bin then it works fine.

      Should the scripts be compulsorily put in cgi-bin..doesn't they work in any other directory..??
      yeah you are write..

      http://www.redantigua.com/cgi-bin/helloworld.cgi-app2.pl

      Any idea why it doesn't work as expected on my machine.

      Machine config is: Apache 2.0.49/mod_perl-1.99_13 Perl/v5.8.0

      Thank you