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

use CGI::Fast; while( $q = new CGI::Fast) { print Dumper($q); } value of $q is always same. CGI::Fast doesn't read the query string every time i call this file. Can you please tell me how can i force the CGI::Fast to re-read the HTTP_Query_String every time i post a request to this file?

Replies are listed 'Best First'.
Re: Fast CGI request doesn't change
by snopal (Pilgrim) on Aug 20, 2007 at 03:28 UTC

    CGI is not used in a dynamic context. It is merely a snapshot of a moment of submission.

    My assumption is that once instantiated, it is assumed that the underlying form responses are not changing. Because of that, it is likely that the module was written to not re-instantiate, but to provide what it already has acquired.


    == Desire is one product of absence. -- Stephen Opal ==
      If I use POST method, CGI::Fast returns the correct request object value every time. But in GET it returns the old same object always.
Re: Fast CGI request doesn't change
by Anonymous Monk on Aug 20, 2007 at 08:41 UTC
Re: Fast CGI request doesn't change
by Anonymous Monk on Aug 20, 2007 at 08:40 UTC
    =head1 CAVEATS I haven't tested this very much.