How does a Perl program know where to find the file containing Perl module it uses?
Perl interpreter (which runs your perl program) will use a special array called @INC to search for a file containing the module. Each value in the @INC array is a directory name (but see note below); Perl will search within those directories in a loop using the rules specified below. (Please refer to this SO … Read more