How can I verify the Perl include path

If you need to know your Perl include path, try this:

perl -e "print qq(@INC)"

If you want to be hackish and get some additional includes into your path to get a script chugging, at work the practice was:

BEGIN {unshift(@INC, "../lib", "../../../foo/lib");}

But I wouldn't recommend that.


Follow on Twitter


LinkedIn
Facebook
Notchup, Member 74311




Copyright (C) 2008, Mike McCreavy
[ x ] Console
Timestamp Message
hey
[ x ] Socket Console
Timestamp Message
hey