I tried my own version of (see below) and to my suprise, it didn't work! lol.
But that's okay since yours does. Only reason I wanted to do this was to see what # my link was but from the print out, I don't think the printout order is the order I need in order to follow a specific link.foreach ($mech->links()) { print "$_<br>"}
Before I try
I need to know I'm doing this on the right URL. Is there a way I can check this link? I tried using find_link and printing it out but it's printing out "index.cgi" and NOT the Frogs and Toads link so I have a feeling if I use follow_link it won't be going to the right link.$mech->get( $url ); $mech->follow_link( url_regex => qr/Frogs and Toads/i );
How can I be sure?
Thanks and sorry for the noobie questions
In reply to Re^4: how to open page and follow link
by Anonymous Monk
in thread how to open page and follow link
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |