I also tried this:my $title = @{$INPUT->param("titles")}[5];
Close. You have to make the list returned by $INPUT->param("titles") into an anonymous array to dereference it proper as an anonymous array with @{ }:
my $title = @{[$INPUT->param("titles")]}[5];
update: answering naikonta's comment below - I would subscript the list and posted this only as an explanation of why the OP's code didn't work :-)
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
In reply to Re: CGI.pm - multiple values for same field name
by shmem
in thread CGI.pm - multiple values for same field name
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |