[cgiapp] Application params problem

Ron Savage ron at savage.net.au
Thu Jul 10 20:34:23 EDT 2008


Hi Folks

On Fri, 2008-07-11 at 08:50 +1000, David Baxter wrote:
> Hi Amelia,
> 
> It looks like you are trying to set the CA params like query params and 
> I don't think that works. Try a different syntax : 
> $self->param('validated_query' => $valid_h);

I don't see how that makes any difference.

More below.

> > For example, take this code:
> >
> > sub check_query_h {
> >     my $self = shift;
> >     my $valid_h;    # hashref to store valid data in
> >     [... validation code ...]
> >     $self->param('validated_query', $valid_h);
> >
> >     print STDERR "valid_h: ".Dumper( $valid_h )."\n";
> >
> >     # see what is in the param 'validated_query'
> >     print STDERR "validated_query: ". Dumper( 
> > $self->param('validated_query') )."\n";

I don't have a good suggestion, but perhaps it's worth considering if
the 'context' of this Dumper() call matters. So, try:

my($h) = $self -> param('validated_query');

print STDERR "context: ".Dumper($h)."\n";

This is just a guess of course. I don't expect to make a difference.

Apart from that, my only other guess would be you've deleted (just to
post) some line of code with affects things.


-- 
Ron Savage
ron at savage.net.au
http://savage.net.au/index.html




More information about the cgiapp mailing list