MrSnrub has asked for the wisdom of the Perl Monks concerning the following question:
When I'm at my Linux prompt I write in the following command:
perl -e 'print join("\n", @INC);'...I get a set of paths.
However, when I edit a .pl file and type in use [module]; in that file, I get an error at my prompt that says Can't locate [module].pm in @INC (@INC contains: [...]) but the problem is the list of paths that follow are entirely different from the ones I got when I did the perl -e 'print join("\n", @INC);' command. Why am I getting two sets of results, and which one is correct?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why am I getting two different results for my @INC variable?
by tinita (Parson) on Nov 29, 2011 at 00:45 UTC | |
|
Re: Why am I getting two different results for my @INC variable?
by chromatic (Archbishop) on Nov 29, 2011 at 00:45 UTC | |
|
Re: Why am I getting two different results for my @INC variable?
by toolic (Bishop) on Nov 29, 2011 at 00:52 UTC | |
|
Re: Why am I getting two different results for my @INC variable?
by MrSnrub (Beadle) on Nov 29, 2011 at 00:58 UTC | |
by MidLifeXis (Monsignor) on Nov 29, 2011 at 13:25 UTC |