Subject: | Documentation error in "CREATING AN OPTION GROUP" |
The line:
-values ['moe','catch'],
Should be:
-values=>['moe','catch'],
This is found in the documentation under the heading, "CREATING AN OPTION GROUP"
Quote:
print $query->popup_menu(-name=>'menu_name',
-values=>[qw/eenie meenie minie/,
$q->optgroup(-name=>'optgroup_name',
-values ['moe','catch'],
-attributes=>{'catch'=>{'class'=>'red'}}),
-labels=>{'eenie'=>'one',
'meenie'=>'two',
'minie'=>'three'},
-default=>'meenie');