You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by James G Smith <JG...@jamesmith.com> on 2000/03/20 14:13:43 UTC
Re: mod_perl and CGI.pm
Benjamin Stocker <bs...@pingnet.ch> wrote:
>The problem is very simple, the following short script:
>
>use CGI qw/:standard/;
>my $s;
>$s=param('value');
>
>produces strange results. When the script is launched with
>http://localhost?value=1, everything seems to be ok, but when the script
>is started again with another value (?value=2) i still get 1 when
>querying param().
This sounds a lot like a closure problem. How are you checking the
value of $s since the above script isn't outputting anything?
------------------------------------+------------------------------------------
James Smith - jgsmith@jamesmith.com | http://www.jamesmith.com/
jsmith@sourcegarden.org | http://sourcegarden.org/
jgsmith@tamu.edu | http://cis.tamu.edu/systems/opensystems/
------------------------------------+------------------------------------------