Home-relative Perl module path?

software development


Are there any directories in my home dir that get automatically added to @INC when a cgi script is run? I’d prefer to factor a script into a simple cgi script that acts as a front-end to a .pm perl module. But I am unsure of where I could put that perl module (other than the same dir as the front-end cgi script) such that it would automatically be found by perl. Does such a place exist by default, or must I set the PERL5LIB environment variable or “use lib” with an explicit dir?


As far as I know, giving ab absolute path to ‘use lib’ is the way to go about doing this.