in reply to add defang wrapper to "use lib"

Wouldn't the good solution be just to add the use lib path (and the perl path in the shebang line) only at make install time? If you are developping the program, you can run it from the source tree as wd, and the implicit . in @INC will do its work.

Replies are listed 'Best First'.
Re^2: add defang wrapper to "use lib"
by merlyn (Sage) on May 11, 2005 at 15:39 UTC
    That would be better, but these other module files aren't installed with Makefile.PL. They're checked into the $client's version control system, and merely extracted in place on the development and production machines. Thus, I wanted to defang those "use lib" that tried to push the production versions of the libs in front of my development versions. And that's what this snippet does, by slightly altering the behavior of "use lib".

    -- Randal L. Schwartz, Perl hacker
    Be sure to read my standard disclaimer if this is a reply.