Adding to Perl's @INC Array
Feb 22, 2010, 23:03 (0 Talkback[s])
(Other stories by Juliet Kemp)
"You're most likely to have encountered the Perl @INC array in
the context of a "cannot find module" error. This is the list of
directories Perl searches when looking for a module. To see a list
of what's in @INC, try this one-liner:
"erl -e 'print join "n",@INC'
"Note that it includes ., the current working directory. In some
cases, it also includes /etc/perl, which can be a good location for
user-written modules.
"If you're using CPAN as root, or installing modules as packages
from your distribution, everything will wind up in the Right Place
automatically."
Complete
Story
Related Stories:
- Xfce Desktop: Less Lard, Less Bling, More Usability
(Feb 10, 2010)
- Tweaking Linux Library Settings Within Readline(Feb 08, 2010)
- Resolving the /etc/hosts localhost Issue in Apache(Feb 03, 2010)
- Shell Scripts and Here Documents(Jan 26, 2010)
- Discovering ncurses, the GUI for the Linux Console(Jan 25, 2010)
- Monitoring Disk Usage With Iotop(Jan 20, 2010)
- usb-creator: Booting From a USB Stick(Jan 12, 2010)
- SpamAssassin's Y2K10 -- Whoops, We Did It Again(Jan 04, 2010)