in reply to Re^5: How to define a package using a tweaked version of LWP::UserAgent?
in thread How to define a package using a tweaked version of LWP::UserAgent?

Thanks for the suggestion.

But it seems that MakeMaker is smarter than I thought, and the simplest solution in my case is to add RequestAgent.pm to lib/My/Client/. Running "perl Makefile.PL" in this directory then creates a Makefile which automatically includes both Client.pm and RequestAgent.pm (and which works with "make test"), and in order to include RequestAgent.pm from inside Client.pm I can simply add this line:

use My::RequestAgent;
No hardcoded or relative paths, and no "use lib". Sweet.

  • Comment on Re^6: How to define a package using a tweaked version of LWP::UserAgent?
  • Download Code