Subject: | [PATCH] updated docs for links() |
It seemed the docs for links() were out of date-- it seems to return an array of WWW::Mechanize::Links objects now, not the 2 element array it mentioned before. Here's a doc and Changes patch:
--- /usr/src/.cpanplus/5.8.0/build/WWW-Mechanize-0.66/Changes Thu Nov 13 15:44:59 2003
+++ ./Changes Wed Nov 19 16:11:53 2003
@@ -1,6 +1,11 @@
# $Id: Changes,v 1.81 2003/11/13 20:38:17 petdance Exp $
Revision history for Perl extension WWW::Mechanize
+0.67
+ [FIXES]
+ * Fixed documentation for links() function to reflect that links
+ are now returned as WWW::Mechanize::Link objects.
+
0.66 Thu Nov 13 14:35:31 CST 2003
No new functionality. Fixed up some install bugs and made a
Only in /usr/src/.cpanplus/5.8.0/build/WWW-Mechanize-0.66: Makefile
Only in /usr/src/.cpanplus/5.8.0/build/WWW-Mechanize-0.66: blib
diff -r --unified /usr/src/.cpanplus/5.8.0/build/WWW-Mechanize-0.66/lib/WWW/Mechanize.pm ./lib/WWW/Mechanize.pm
--- /usr/src/.cpanplus/5.8.0/build/WWW-Mechanize-0.66/lib/WWW/Mechanize.pm Thu Nov 13 15:44:59 2003
+++ ./lib/WWW/Mechanize.pm Wed Nov 19 16:10:21 2003
@@ -795,8 +795,8 @@
When called in a list context, returns a list of the links found in
the last fetched page. In a scalar context it returns a reference to
-an array with those links. The links returned are all references to
-two element arrays which contain the URL and the text for each link.
+an array with those links. The links returned are all L<WWW::Mechanize::Link>
+objects.
=head2 C<< $a->is_html() >>