the -labels attribute expects an array reference, not a list, so that should instead be -labels => [ keys %labels ]
the [ ] around the keys %labels makes it an anonymous array, which is a reference to an array with no name.
HTH
If not P, what? Q maybe?
"Sidney Morgenbesser"
In reply to Re: Re: cgi.pm: popup_menu
by arturo
in thread cgi.pm: popup_menu
by slackah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |