OlegG has asked for the wisdom of the Perl Monks concerning the following question:
or evenuse composition LWP::UserAgent => LWP::UserAgent::Proxified => LWP::UserAgent::Determined => LWP::UserAgent::Cached; # now LWP::UserAgent::Cached->new() creates useragent with all support +ed options
This pragma will simply modify @ISA of each specified package: LWP::UserAgent::Proxified as before inherits LWP::UserAgent, LWP::UserAgent::Determined now inherits LWP::UserAgent::Proxified and LWP::UserAgent::Cached inherits LWP::UserAgent::Determined.use composition -new => LWP::UserAgent => LWP::UserAgent::Proxified => LWP::UserAgent::Determined => LWP::UserAgent::Cached => LWP::UserAgent::Powerfull; # LWP::UserAgent::Powerfull was autogenerated # LWP::UserAgent::Powerfull->new() creates useragent with all supporte +d options
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: base class manipulation: Is there something similar on CPAN?
by JavaFan (Canon) on Jan 16, 2012 at 12:05 UTC | |
by OlegG (Monk) on Jan 16, 2012 at 12:25 UTC | |
|
Re: base class manipulation: Is there something similar on CPAN?
by tobyink (Canon) on Jan 16, 2012 at 13:15 UTC | |
by OlegG (Monk) on Jan 16, 2012 at 17:12 UTC | |
by OlegG (Monk) on Jan 16, 2012 at 17:49 UTC | |
by tobyink (Canon) on Jan 16, 2012 at 20:50 UTC | |
|
Re: base class manipulation: Is there something similar on CPAN?
by OlegG (Monk) on Jan 16, 2012 at 18:14 UTC |