Perl - how to USE a custom module that sits in a different directory
Posted on 2003-03-11
I would like to use a perl module that I have written.
Currently I call it thus:
but this requires the module to sit next to the perl script.
This means that to use it for scripts in different dirs I have to cop the module around. This is a nightmare for version control!
I have tried
etc but cannot seem to get it to work.
A solution is to put all scripts and this module in one cgi-src dir but this is not possible (some scripts are already in place and are linked to from elsewhere).
How can I call the custom module from another directory?
My server is Red Hat Linux release 7.3 (Valhalla) Kernel 2.4.19-rc3 on an i686 with Apache and perl 5.6.1.