in reply to How to use a module without installing it?
Or could I put the module's code in the same directory as my Perl code?Yes, if the module is in the same directory, you can just do do this, presuming the module is called Whatever.pm:
Notice that is not it's normal canonical name (eg, Special::Whatever). You should test this way to be sure it will work with any particular module, of course.use Whatever;
And use "use" the same way.BEGIN { push @INC,"/some/directory"; }
|
|---|