how to modify perl @INC array

How do I modify @INC array ?

I want to be able to use a module that is installed in a different location of perl (than the one that I normally use). So I was told to modify INC array.

thanks.
chazhsAsked:
Who is Participating?
 
dkjariwalaCommented:
push (@INC,'/your/path/to/folder');


That might do.

JD
0
 
ozoCommented:
use lib 'location of module';
0
 
chazhsAuthor Commented:
Thank You! This was the answer I was looking for!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.