Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Adding a hash to a CGI param

by Anonymous Monk
on Jan 03, 2008 at 17:10 UTC ( #660250=note: print w/replies, xml ) Need Help??


in reply to Re^2: Adding a hash to a CGI param
in thread Adding a hash to a CGI param

I suppose if I were storing an array in the param, I could push .

Assuming that what was returned by  $self->param('foo') was an array reference and not a hash ref, you could indeed say:

push @{ $self->param('foo') }, $element, $anotherelement, $etc;

And, in general, treat the expression as you would any array ref:

$self->param('foo')->[$n] = 42;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://660250]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2021-07-30 13:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?