in reply to Adding a hash to a CGI param
I believe this will work:
In the line above, it simply deferences the return value of $self->param( 'sql' ) and sets the page_id key to 45.
Where the concept is that the value of the 'sql' param is a hash reference, so you just need to retrieve that and work with it as if it you had done something like my $href= \%sql;#EARLIER $self->param( 'sql' => \%sql ); #LATER $self->param( 'sql' )->{page_id} = 45;
In the line above, it simply deferences the return value of $self->param( 'sql' ) and sets the page_id key to 45.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Adding a hash to a CGI param
by bradcathey (Prior) on Jan 03, 2008 at 15:44 UTC | |
by Anonymous Monk on Jan 03, 2008 at 17:10 UTC |
In Section
Seekers of Perl Wisdom