But you aren't passing a hash reference to -values; you're passing an array reference to a single element array (that single element is a hash ref). Try this instead:
print $cgi->popup_menu(-name=>'menu_name', -values=>$hash_ref);
In reply to Re: CGI's "popup_menu" Using Hash Reference
by duff
in thread CGI's "popup_menu" Using Hash Reference
by awohld
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |