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?