Tell me how to use CGI.pm in table
Sat, 18 May 2013 01:19:26 -0700 Post Comments
Hi Masayoshi,
The line above gives a warning message: Odd number of elements in hash
assignment.
You can re-write that like so:
my $radio = $q->radio_group(
-name => 'celeb',
-values => [ 'Hilary Duff', 'Taylor Momsen' ],
-default => 'Hilary Duff');
my %form = (
celeb => $radio,
submit => $q->submit,
reset => $q->reset,
);
--
Tim
The line above gives a warning message: Odd number of elements in hash
assignment.
You can re-write that like so:
my $radio = $q->radio_group(
-name => 'celeb',
-values => [ 'Hilary Duff', 'Taylor Momsen' ],
-default => 'Hilary Duff');
my %form = (
celeb => $radio,
submit => $q->submit,
reset => $q->reset,
);
--
Tim
