in reply to CGI.pm - multiple values for same field name
$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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CGI.pm - multiple values for same field name
by shmem (Chancellor) on May 25, 2007 at 08:58 UTC | |
by ikegami (Patriarch) on May 25, 2007 at 15:09 UTC | |
by shmem (Chancellor) on May 25, 2007 at 15:30 UTC |