Finding @INC

Posted by troyt on 2006-06-26 15:52
OS: All / Any | Product: ActivePerl | tags: @INC
Question: 

How can I find out which directories are in @INC?

Answer: 

@INC is a special variable which contains the directories perl looks through for files included through use, require or do statements. To see which directories are in @INC, run the following at the command-line:

    perl -e "foreach (@INC){print $_.\"\n\"}"

jbentonadc | Wed, 2013-04-03 07:03

Running the command perl -V also displays the contents of @INC