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