I'm using CGI.pm and i want to pass a hash to the popup_menu function so it will create all my select fields.
On perldoc it says the following:
%labels = ('eenie'=>'your first choice',
'meenie'=>'your second choice',
'minie'=>'your third choice');
print $query->popup_menu(-name=>'menu_name',
-values=>['eenie','meenie','minie'],
-default=>'meenie',
-labels=>\%labels);
I don't want to have to type in the all the values manually though. Could someone tell me how to pass the hash keys for the values? The same as is done for the -labels? \%labels for the values field passes the hash values.
edited: Fri Mar 14 23:31:30 2003
by jeffa - code tags