If by stickiness you mean what I think you mean, you
don't need CGI.pm for that. You presumably are already
passing the form values selected by the user back to
your script as input (either in a QUERY_STRING or via
POST) because otherwise there'd be no point in having
those fields in the first place, except maybe decor.
So, when you print out your form elements (however you
do it), just prefill them with the existing input.
You can use ||= to set defaults, to cover the case
where the user is getting the form for the first time.
(If " " or zero is a legit value, you can use a
defined ... or structure to do the same thing, e.g.,
defined $input{foo} or $input{foo}="blah";.)
{my$c;$ x=sub{++$c}}map{$ \.=$_->()}map{my$a=$_->[1];
sub{$a++ }}sort{_($a->[0 ])<=>_( $b->[0])}map{my@x=(&
$x( ),$ _) ;\ @x} split //, "rPcr t lhuJnhea eretk.as
o";print;sub _{ord(shift)*($=-++$^H)%(42-ord("\r"))};
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|