in reply to Two(+) versions of same module?

It's possible. I maintain multiple versions for development purposes. It's fine for stand alone scripts, CGI, FastCGI ... but not mod_perl.

For the 'alternative' module, you'll want to install it in some location outside of your normal @INC and just use lib '/path/to/library/base';

You'll also want to take note that the syntax use Module version; will use that version or greater, and will not restrict it to that specific version. If you wish, you can inspect $Class::MethodMaker::VERSION and abort if the wrong version was loaded.

Replies are listed 'Best First'.
Re^2: Two(+) versions of same module?
by Fendaria (Beadle) on Apr 29, 2005 at 21:18 UTC

    Ya, I just checked my code and I did stick in a check on $VERSION and croak if it isn't 1.12 in the BEGIN of the module.

    Although I swear I thought Perl had a builtin way to with use to require a certain version of a module. But perhaps I'm thinking of a different language, TCL maybe.

    Fendaria