in reply to Re^3: how to open page and follow link
in thread how to open page and follow link
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: how to open page and follow link
by ikegami (Patriarch) on Apr 11, 2005 at 14:44 UTC |