in reply to Re^2: Including files
in thread Including files
Let me get this straight:
- ~/abc/moo.pl
- ~/abc/cow.pm
- ~/zyx/cow.pm
- current directory is ~/zyx
moo.pl has:
- use cow
- use lib 'cow'
When i execute moo.pl, . is set to ~/zyx, so:
- use cow means ~/zyx/cow.pm
- use lib 'cow' means ~/abc/cow.pm
Did i get it right that, basically, there is a difference between the "current" directory and the directory of the pl file. Or, put another way, if i keep all my project files in the same directory, like we do during development, and the directory may change, and the directory i execute it from may change, "use lib" will work "as expected".
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Including files
by jdporter (Paladin) on Dec 09, 2011 at 14:38 UTC | |
by chacham (Prior) on Dec 13, 2011 at 20:42 UTC |
In Section
Tutorials