Perhaps the append method will do what you want. From the CGI docs (see "Setting the value(s) of a named parameter"):
This sets the value for the named parameter 'foo' to an array of values. This is one way to change the value of a field AFTER the script has been invoked once before.$query->param('foo','an','array','of','values');
param() also recognizes a named parameter style of calling described in more detail later:$query->param(-name=>'foo',-values=>['an','array','of','values']);
As a bonus, you don't have to break object encapsulation. :-)
In reply to Re: How to add an element to a session param
by bobf
in thread How to add an element to a session param
by bradcathey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |