in reply to RE: Re: drop down menus
in thread drop down menus

Sorry, you're simply wrong.. What he needs is a hash reference: I copy/paste from the CGI.pm documentation: (in http://stein.cshl.org/WWW/software/CGI/cgi_docs.html)
If you pass a HASH reference, the keys will be used for the menu values, and the values will be used for the menu labels.

Replies are listed 'Best First'.
RE: RE: RE: Re: drop down menus
by cianoz (Friar) on Sep 21, 2000 at 18:20 UTC
    no, we are both right:-)
    (from http://stein.cshl.org/WWW/software/CGI/cgi_docs.html)

    The required second argument (-values) is an array reference containing the list of menu items in the menu. You can pass the method an anonymous array, as shown in the example, or a reference to a named array, such as \@foo. If you pass a HASH reference, the keys will be used for the menu values, and the values will be used for the menu labels (see -labels below).

    using an array reference has a little advantage:
    you have full control on how items are sorted...