blogical has asked for the wisdom of the Perl Monks concerning the following question:
I can't see why
works as expected butCGI::popup_menu( -name => $_[0]->{fname}, -values => [ undef, @{ $_[0]->{field_meta}{$_[0]->{name}}{values} + }], -labels => $_[0]->{field_meta}{$_[0]->{name}}{labels}, -default => $_[0]->value, );
doesn't have any labels. What could switching the order in a HASH matter? This is happening for two fields I have, one has two options and the other has over fifty, all values have labels except undef.CGI::popup_menu( -name => $_[0]->{fname}, -values => [ undef, @{ $_[0]->{field_meta}{$_[0]->{name}}{values} + }], -default => $_[0]->value, -labels => $_[0]->{field_meta}{$_[0]->{name}}{labels}, );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI.pm popup_menu labels bug?
by Errto (Vicar) on Mar 26, 2006 at 16:40 UTC | |
by Thelonius (Priest) on Mar 26, 2006 at 17:21 UTC | |
by blogical (Pilgrim) on Mar 26, 2006 at 18:38 UTC | |
|
Re: CGI.pm popup_menu labels bug?
by lima1 (Curate) on Mar 26, 2006 at 15:40 UTC | |
by blogical (Pilgrim) on Mar 26, 2006 at 15:48 UTC |