
shawnhcorey
Enthusiast

Dec 31, 2008, 11:01 AM
Post #3 of 4
(478 views)
|
@INC specifies the location of PERL libraries. So what shall I understand from @INC, what location does it specify ? When I use "perl @INC" on command prompt, I get message saying "cant run perl script @INC, no such file or directory". So what does @INC mean ? @INC is a special variable that holds the directories (folders) where the Perl modules are. See `perldoc perlvar` and search for it. If you want to add your directories to it, use lib; see `perldoc lib`. To add the directory where the script is use:
use FindBin '$RealBin'; FindBin::again(); use lib $RealBin; See `perldoc FindBin` for details. __END__ I love Perl; it's the only language where you can bless your thingy. Perl documentation is available at perldoc.perl.org. The list of standard modules and pragmatics is available in perlmodlib. Get Markup Help. Please note the markup tag of "code".
|