in reply to CGI's "popup_menu" Using Hash Reference
You need to form the hash in this way:
my $hash_ref = { "1" => "Peter", "2" => "David" }; [download]
And the code in this way:
print $cgi->popup_menu(-name=>'menu_name', -values=>$hash_ref); [download]