troubleshooting Question

Question about @INC variable in perl

Avatar of Rambl
Rambl asked on
PerlScripting LanguagesShell Scripting
1 Comment1 Solution184 ViewsLast Modified:
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).

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros