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