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

Hi, I usually run CGI scripts from the cmd line and > to a .html file to see any errors & info I print before deploying. It seems to add the param values onto themselves. e.g. $var = param('P_blah'); if I print out $var in the script, it keeps on adding itself onto itself each time I run the script... i.e. $var = $allprevious . $var Strange indeed!

Replies are listed 'Best First'.
Re: CGI param memory effect?
by UnderMine (Friar) on Nov 20, 2002 at 10:10 UTC
    You sure you are getting $a=$a.$b and not $a=$a."\0".$b in the same way that multiple checkboxes of the same name are converted to null seperated lists.

    Hope it helps
    UnderMine