Just another Perl shrine | |
PerlMonks |
Re: WWW::Mechanize find_link question.by Adrade (Pilgrim) |
on May 13, 2005 at 00:59 UTC ( [id://456577]=note: print w/replies, xml ) | Need Help?? |
Dear dEvNuL, Well, I've never worked with the Mechanize library either, but if I understand your question correctly, I would personally use a pattern match to solve your problem. If you want to capture the last link in some HTML: Now, if you wanted to match the last url in your document that specifically linked an image (if there were more links that you want to ignore that follow the image link):
Using your html, in both cases, $linkloc becomes url?page=2 I hope this is helpful. Best, -Adam
In Section
Seekers of Perl Wisdom
|
|