doubleqq has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I think this is probably a simple question but I am learning how to use WWW::Mechanize and I am not sure how to structure my conditional statement. The page is structured in a table like so:
How would I match $mech -> follow_link (....) to follow the download link on the text "paper"?Row 1 Row 2 Paper Download[url] Journal Download[url] Poster Download[url] Paper Download[url] Paper Download[url] Paper Download[url] Journal Download[url] In HTML: <tr align="left"> <td>Paper</td> <td><a href="url">[Download]</a></td> <tr align="left"> <td>Journal</td> <td><a href="url">[Download]</a></td> <tr align="left"> <td>Poster</td> <td><a href="url">[Download]</a></td> etc... <tr align="left"> <td>Paper</td> <td><a href="url">[Download]</a></td>
Any insight is always much appreciated.
Thank you!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Matching Text On a Web link
by Anonymous Monk on Apr 11, 2014 at 21:59 UTC | |
by doubleqq (Acolyte) on Apr 11, 2014 at 22:13 UTC |