Bob Showalter wrote:
Scott R. Godin wrote:
under what circumstances is the CGI.pm's STORE autoloaded method
called?
is it used only when you assign values to the object, or is it only
used when receiving values (or multi-values) from the webserver query?
It is part of the tied hash interface returned by the $q->Vars method. It is
only invoked if you assign parameters through the tied hash.
All it does is call $q->param to assign the parameter value.
So if I were to say, override it thusly:
package CGI;
sub STORE {
my $self = shift;
my $tag = shift;
my $vals = shift;
#my @vals = index($vals,"\0")!=-1 ? split("\0",$vals) : $vals;
my @vals = @{$vals};
$self->param(-name=>$tag,-value=>[EMAIL PROTECTED]);
}
It wouldn't affect the webserver's ability to insert params from the
query, correct?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>