Linux Today: Linux News On Internet Time.

More on LinuxToday

Adding to Perl's @INC Array

Feb 22, 2010, 23:03 (0 Talkback[s])
(Other stories by Juliet Kemp)


Desktop-as-a-Service Designed for Any Cloud ? Nutanix Frame

"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: