in reply to CGI's "popup_menu" Using Hash Reference

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);

Replies are listed 'Best First'.
Re^2: CGI's "popup_menu" Using Hash Reference
by pg (Canon) on Aug 31, 2005 at 06:21 UTC

    The hash itself also need to be reformated.