The much safer alternative is to simply fetch the RSS yourself and feed it to the class as a string.{ my $real_meth = \&LWP::UserAgent::agent; local *LWP::UserAgent::agent = sub { $_[1] = "Camel Power 3.14.15" if $_[1] =~ /XML::RSS/; goto &$real_meth; }; $rss_object->rss_uri('http://foo/bar/index.rss'); }
Makeshifts last the longest.
In reply to Re: Overriding module-internal calls
by Aristotle
in thread Overriding module-internal calls
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |