[cgiapp] Application params problem

Michael Peters mpeters at plusthree.com
Fri Jul 11 10:35:27 EDT 2008


Amelia Ireland wrote:

> I tried both $self->param('validated_query', $valid_h) and
> $self->param('validated_query' => $valid_h), but neither works

Just an FYI and to clear up some confusion, those two are syntactically
equivalent in all Perl code.

  'foo', 'bar'
  ==
  foo => 'bar'

The "fat arrow" is just a fancy comma in Perl that will automatically quote the
symbol to the left if it's a bare word.

-- 
Michael Peters
Plus Three, LP



More information about the cgiapp mailing list