$INPUT->param("titles")
returns a list. You can't index a list, but you can slice it.
($INPUT->param("titles"))[5]
c.f. perldata
@{$INPUT->param("titles")}[5]
and
$INPUT->param("titles")->[5]
don't work because param doesn't return a reference to an array.
$INPUT->param("titles")[5]
it just plain invalid syntax.
In reply to Re: CGI.pm - multiple values for same field name
by ikegami
in thread CGI.pm - multiple values for same field name
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |