in reply to CGI.pm - multiple values for same field name

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}

Replies are listed 'Best First'.
Re^2: CGI.pm - multiple values for same field name
by naikonta (Curate) on May 25, 2007 at 08:39 UTC
    True, but why would you do that? :-)

    Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!