in reply to Overriding module-internal calls
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Overriding module-internal calls
by hacker (Priest) on Apr 22, 2003 at 12:08 UTC | |
by Juerd (Abbot) on Apr 22, 2003 at 12:18 UTC | |
|
Re: Overriding module-internal calls
by Anonymous Monk on Apr 22, 2003 at 11:13 UTC | |
by Aristotle (Chancellor) on Apr 22, 2003 at 14:04 UTC |