Don't ask to ask, just ask | |
PerlMonks |
WWW:Mechanize conditional finding/following links and redundant link avoiding?!by fraizerangus (Sexton) |
on Oct 24, 2011 at 18:50 UTC ( [id://933458]=perlquestion: print w/replies, xml ) | Need Help?? |
fraizerangus has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks
Apologies but 2 questions for you today regarding WWW:Mechanize: 1) When using the $mech->follow_link(...) $mech->find_link( ... ) if one wanted more than 1 conditional for selecting links what would the syntax be for doing this e.g
but the following does'nt?
Can anyone point me in the right direction or know the answer? 2) what is the best practice for only following/selecting the same link once and not following it again multiple times if the link is present more than once on a web-page? many thanks and best wishes Dan
Back to
Seekers of Perl Wisdom
|
|