- Using perl module from standard path:
- ----
- use Getopt::Std;
- ----
- Using perl module from non-standard path(eg; from your home directory):
- ---- use lib '/home/<username>/perl_modules/DateTime-1.20/lib';
- use DateTime;
setenv PERL5LIB /home/rperiset/perl_modules/DateTime-1.20/lib (for tcsh)
export PERL5LIB=/home/rperiset/perl_modules/DateTime-1.20/lib (for bash)
- ----
- Note: Path should be upto directory where module resides.
No comments:
Post a Comment