in reply to Re: base class manipulation: Is there something similar on CPAN?
in thread base class manipulation: Is there something similar on CPAN?

Your second example looks more correct, but in fact should be:
foreach my $parent (@LWP::UserAgent::Determined::ISA) { if ($parent eq 'LWP::UserAgent') { $parent = 'LWP::UserAgent::Proxified'; last; } }
instead of push.
Module can automate this routine actions and make some additional checks.
  • Comment on Re^2: base class manipulation: Is there something similar on CPAN?
  • Download Code