It's poorly documented, but the goal of sticky is to preserve fields from past requests. It allows things like multi page forms. It has nothing to do with whether CGI gets the value of fields from param or not. That's controlled by override.

If you want to override everything in one go, you could use

$cgi->delete_all();

Just be sure grab what you need from param first.

Update: While trying to construct an example, I realized I was wrong.

nosticky is just plain buggy. It's behaviour is completely different than the one documented. After studying the source, I've come to the conclusion that nosticky's *only* goal is to prevent the hidden field .cgifields from being created. That field is used to help make check boxes, check box groups, radio buttons and select lists sticky. CGI never intends nosticky to prevent anything from being sticky, so it will try to make those fields sticky even if .cgifields isn't present. Anything else if sticky regardless of nosticky.


In reply to Re: CGI.pm nosticky option does not work by ikegami
in thread CGI.pm nosticky option does not work by robobunny

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.