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

People
Owner: Nobody in particular
Requestors: apv [...] sedition.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Feature suggest: Stringify WWW::Mechanize::Link to url_abs()
Download (untitled) / with headers
text/plain 551b
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
Thanks, but I'm not going to do this. Overloading gives me the willies.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.