You need to form the hash in this way:
my $hash_ref = { "1" => "Peter", "2" => "David" };
And the code in this way:
print $cgi->popup_menu(-name=>'menu_name', -values=>$hash_ref);
In reply to Re: CGI's "popup_menu" Using Hash Reference
by pg
in thread CGI's "popup_menu" Using Hash Reference
by awohld
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |