in reply to Scrape Select Options from Web Page

There are several options for parsing HTML, for something like this it seems easiest to use Mojo::DOM:

my $dom = Mojo::DOM->new($html); my $values = $dom->find('select#jumpMenu2 > option') ->map(attr=>'value')->compact; # returns a Mojo::Collection for my $v (@$values) { print "<<$v>>\n"; }

Update: But it's also possible with WWW::Mechanize directly, see my other reply.

Replies are listed 'Best First'.
Re^2: Scrape Select Options from Web Page
by BrentD (Sexton) on Jun 06, 2018 at 21:30 UTC
    Got this one to work. Thank you.