We help IT Professionals succeed at work.

Question about @INC variable in perl

176 Views
Last Modified: 2015-09-25
perl -V gives you information on the @INC variable.

I'm assuming if your perl script calls a module, it is loaded in the order in which the @INC is listed (from the perl-V command)

How do I change the order of these directories so I can make sure it picks up the version of the module I'm intending? ...or, is that implied in the script itself on the first line. i.e. #!/home/mydir/perl

There are 3 versions of perl on the system, which seems to be necessary (specific to how this server is used).

Thanks
Comment
Watch Question

CERTIFIED EXPERT
Most Valuable Expert 2014
Top Expert 2015
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.