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: 6459
Status: resolved
Priority: 0/
Queue: WWW-Mechanize

People
Owner: Nobody in particular
Requestors: howie [...] thingy.com
Cc:
AdminCc:

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



Subject: Two doc errors - one slight, one rather misleading!
WWW::Mechanize 1.02 In the pod there is an example: $mech->find_link( tag_regex => qr/^(a|img)$/; Firstly, this is missing the closing parenthesis, so it's not valid perl. More importantly though, it will never find any images! :-) I just spent a few minutes scratching my head, because if there's an example in the manual, *surely* I'm doing something stupid. The fix seems to be to add a new entry to %WWW::Mechanize::urltags, but I suspect that I'm not supposed to know about that. Perhaps a 'register_tag' method?
I just saw all this is in ticket 2989 too. Sorry. (It's still incorrect docs though :-)