Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the WWW-Mechanize-Cached CPAN distribution.

Report information
The Basics
Id: 59802
Status: resolved
Priority: 0/
Queue: WWW-Mechanize-Cached

People
Owner: Nobody in particular
Requestors: njh [...] bandsman.co.uk
Cc:
AdminCc:

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



Subject: www::mechanize::gzip
How can I combine WWW::Mechanized::Cached with WWW::Mechanize::GZip? Could we please have a WWW::Mechanize::GZip::Cached?
On Thu Jul 29 00:42:02 2010, njh@bandsman.co.uk wrote: Show quoted text
> How can I combine WWW::Mechanized::Cached with WWW::Mechanize::GZip? > Could we please have a WWW::Mechanize::GZip::Cached?
Well, if you want something quick and dirty you can use right now: use strict; use warnings; package WWW::Mechanized::CachedAndZipped; use base('WWW::Mechanize::GZip','WWW::Mechanize::Cached'); 1; Because both modules override different methods, multiple inheritance should work here without coming back to bite you, at least with the current versions of both modules. Having said that, a more elegant solution would be nicer and I can see the advantages. I'll think about a nice way to do it. Suggestions are welcome. Olaf