Subject: | Feature suggest: Stringify WWW::Mechanize::Link to url_abs() |
Not a bug and maybe not even a good idea but I'm thowing it out there.
If link objects stringified to their underlying URLs then more compact/idiomatic code can be written. Things like:
for my $link ( grep /\.html$/, $mech->links() ) {
# do something
}
Not a big deal, obviously, just something to consider which seems like it might make sense because the URI::URI objects stringify.
Proposed/sample code (pretty much straight out of URI::WithBase):
use overload '""' => "url_abs", fallback => 1;
Thank you, Andy. You rock.
-Ashley