⭐ in reply to Input arrays to CGI
CGI.pm will handle this. All you need to do is
request the multi-value parameter as a list:
Run this on the command line like so:use strict; use CGI qw(param); use Data::Dumper; my @list = param('list'); print Dumper \@list;
./foo.pl 'list=foo&list=bar&list=baz&list=qux'and you should see the following:
$VAR1 = [ 'foo', 'bar', 'baz', 'qux' ];
In Section
Seekers of Perl Wisdom