Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Get specific values from look_down method of HTML::TreeBuilder

by kalyanrajsista (Scribe)
on Jan 07, 2010 at 08:18 UTC ( #816047=note: print w/replies, xml ) Need Help??


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

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'] );

Replies are listed 'Best First'.
Re^3: Get specific values from look_down method of HTML::TreeBuilder
by Anonymous Monk on Jan 07, 2010 at 08:25 UTC
    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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://816047]
help
Chatterbox?
[stonecolddevin]: good morning all
[holli]: I'd bring wine but I am dry since two years, so cookies must do
[1nickt]: james28909 I enjoyed your metaphysical wonderings in tghe scientist thread. Also thought your comment about baby crispr students was comment of the year.
Eily brings the milk

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2017-12-13 17:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (373 votes). Check out past polls.

    Notices?