⭐ in reply to Input arrays to CGI
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' ];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Input arrays to CGI
by hippo (Archbishop) on Nov 14, 2024 at 17:06 UTC |