in reply to HTML::Form - Getting what is seen not the value..

The following will give you a list of names:
my $status_form = HTML::Form->parse($response); $status_form->find_input('cmbDivision', "option")->value_names();

Replies are listed 'Best First'.
Re^2: HTML::Form - Getting what is seen not the value..
by Rhodium (Scribe) on Jan 22, 2005 at 14:06 UTC
    Hey this is close,

    For what ever reason this returns the number of entries not the value. I found this could be a bug actually cause it's supposed to work.

    http://article.gmane.org/gmane.comp.lang.perl.modules.lwp/1007 http://groups-beta.google.com/group/perl.beginners/browse_thread/thread/84e53f42f011521e/16f0bf1ce4925e0e?q=HTML::Form+value_names&_done=%2Fgroups%3Fq%3DHTML::Form+value_names%26hl%3Den%26lr%3D%26sa%3DN%26tab%3Dwg%26&_doneTitle=Back+to+Search&&d#16f0bf1ce4925e0e

    Any other ideas... TIA


    Rhodium

    The seeker of perl wisdom.

      It's a matter of context, in list context, it will return the full list, while in scalar context, it returns the number.
        HI Johnnywang

        Ok I have been beating my head on this. Could you be so kind as to explain this simple concept to me.

        TIA


        Rhodium

        The seeker of perl wisdom.