typo in Mechanize and C< junk => stuff > broken
[email protected] (Mike McClain) Mon, 1 Aug 2011 09:25:16 -0700
| Newsgroups | perl.libwww |
|---|---|
| Message-ID | <20110801162516.GA24711@playground> |
In reading 'perldoc WWW::Mechanize' or 'man WWW::Mechanize' the
description for $mech->select has been confusing me for a while.
Today I looked at the source and recognized why.
First there is a '}' missing and second the quoting mechanism
C< ... > breakes if there is a '>' inside, as in: C<{n => [2,4]}>.
Following are two forms of the diff to address the first.
I don't know enough about perldoc or man to address the second.
mike@/deb40a:~/tmp> diff /usr/share/perl5/WWW/Mechanize.pm Mechanize.pm
1066c1066
< an C<n> key selects an item by number (e.g. C<{n => 3> or C<{n => [2,4]}>).
---
> an C<n> key selects an item by number (e.g. C<{n => 3}> or C<{n => [2,4]}>).
mike@/deb40a:~/tmp> diff -n /usr/share/perl5/WWW/Mechanize.pm Mechanize.pm
d1066 1
a1066 1
an C<n> key selects an item by number (e.g. C<{n => 3}> or C<{n => [2,4]}>).
My thanks for all the hard work that went into this library.
Knowing as little as I do about the innards of HTTP/HTML writing an ap
to gather job listings would be daunting.
Mike
--
Satisfied user of Linux since 1997.
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org