For Same Directory:
we can keep .pm and .pl file in same directory
e.g;
Example.pm
Test_Example.pl
these are our .pm and .pl file
we just need to mention following thing in Test_Example.pl file,
use Example;
For Different Directory:
if we want to keep .pl and .pm in different directories,
then if you create Module directory inside your present directory to keep
your .pm files separate,
then you just need to provide the path for Example.pm file in Test_Example.pl by,
use Module::Example
here Module is directory which contains Example.pm module