Thanks for the helpful replies. It took me a little while to interpret some of it correctly, so I herein post my trouble for anybody else who is trying to do the same.
The -I suggestion was very helpful, but I was not having any joy trying to give it two directories to add to @INC. The Camel doc told me that it was preferable to use lib in the script instead of -I in the call to Perl. Did that. I am editing Grapher.pm in the Module::Dependency CPAN module. I have it sitting in /home/throop/perl/Module-Dependency-1.86/lib/Module/Dependency/Grapher.pm Naively, I entered the code:
which didn't work. The Module/Dependency in the string was the culprit. Perl went looking for /home/throop/perl/Module-Dependency-1.86/lib/Module/Dependency/Module/Dependency/Grapher.pm, didn't find it, quit. What worked wasuse lib qw(/home/throop/perl/Module-Dependency-1.86/lib/Module/Depende +ncy);
letting Perl transmogrify Module::Dependency::Grapher into Module/Dependency/Grapher.pmuse lib qw(/home/throop/perl/Module-Dependency-1.86/lib);
As for the wisdom of modifying CPAN module code — point taken. I wrote the maintainer with some queries and he noted that the particular section of the code that I need hasn't received much loving for a long time; asked me to update it. I may do that; I'm having discussions with my employer. I know about forgiveness and permission but I'm wish to be careful and scrupulous.
throop
In reply to Re: Editing files in a module
by throop
in thread Editing files in a module
by throop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |