in reply to Get specific values from look_down method of HTML::TreeBuilder

Is there any way that I can extract only specific hidden values

I don't understand, your code does exactly that, what is your question?

  • Comment on Re: Get specific values from look_down method of HTML::TreeBuilder

Replies are listed 'Best First'.
Re^2: Get specific values from look_down method of HTML::TreeBuilder
by kalyanrajsista (Scribe) on Jan 07, 2010 at 08:18 UTC

    Sorry for putting in confusion. Below code extracts all the hidden values from HTML

    my @hidden_inputs = $t->look_down( _tag => q{input}, type => q{hidden}, );

    I want specific hidden values like recid1 and country with the below code, but isn't working

    my @hidden_inputs = $t->look_down( _tag => q{input}, type => q{hidden}, name => ['recid1', 'country'] );
      I see. look_down supports strings and regex only, so you can use
      name => qr'recid1|country',

        Thank you. solution rocks...where can i get the full documentation for look_down and HTML::TreeBuilder module