Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Perl
Perl Misc
CGI.pm and param
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="garhone, post: 4826588"] I'm trying to view the contents of my CGI object, directly and using param. I encounter a problem with scrolling lists. Here's my scrolling list: 'slist' => ['foo', 'bar', 'fu', 'foobar', 'fubar']; When I use Data::Dumper on $q, the CGI object, I'll see .... ,'slist' => ['foo', 'bar', 'fu', 'foobar', 'fubar'], .... If I try to access 'slist' directly, I can see all of it: print Dumper $q->{'slist'}; I get $VAR1 = 'foo' $VAR2 = 'bar' $VAR3 = 'fu' $VAR4 = 'foobar' $VAR5 = 'fubar' But if I try my @a = $q->param('slist'); print Dumper @a; I get $VAR1 = 'foo' and that's it. Can anyone tell me why this is the case? How can I get $q->param('slist') to return all the contents of 'slist' instead of just the first element? Thanks in advance [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
CGI.pm and param
Top