Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the WWW-Mechanize CPAN distribution.

Report information
The Basics
Id: 2415
Status: resolved
Priority: 0/
Queue: WWW-Mechanize

People
Owner: Nobody in particular
Requestors: mark [...] summersault.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.39
Fixed in: (no value)



Subject: patch for missing find_links return value documentation
Hello, In .40 a new feature was added name find_links. Unfortunately, what happened if a link was actually found was not documented. This patch adds documentation for the return value in this case.
--- Mechanize.pm.orig Sun Apr 20 17:34:14 2003 +++ Mechanize.pm Sun Apr 20 17:36:28 2003 @@ -268,8 +268,11 @@ =head2 C<< $agent->find_link() >> -This method finds a link in the current page. You can select which -link to follow by passing in one of these key/value pairs: +This method finds a link in the current page. If a link is found, it returns a +two element array which contains the URL and the text of the link. If no link +is found it returns undef. + +You can select which link to follow by passing in one of these key/value pairs: =over 4
Thanks. It'll be in the next version.