How does a Perl program know where to find the file containing Perl module it uses?

Posted by DVK on Stack Overflow See other posts from Stack Overflow or by DVK
Published on 2010-03-26T20:28:59Z Indexed on 2010/03/26 20:33 UTC
Read the original article Hit count: 418

Filed under:
|
|
|
|

If my Perl program uses Perl modules, how will it determine where to find the file containing the module code?

For example, if the program contains:

use MyModule1;              # Example 1
use This::Here::MyModule2;  # Example 2

where will it look?

© Stack Overflow or respective owner

Related posts about perl

Related posts about perl-module