in reply to Re^2: Howto set path for local package in a Perl code
in thread Howto set path for local package in a Perl code
This is for your package file 'MyPackage.pm'# In script file named: mycode.plx use strict; use warnings; use diagnostics; # This just gives you more info. use lib '/home/neversaint/MyPerl/src'; use MyPackage; # Now the rest of your code.
# In MyPackage.pm package MyPackage; use strict; use warnings; use diagnostics; sub some_function { print("My some function"); }
|
|---|