Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: @INC Errors

by Khen1950fx (Canon)
on Oct 09, 2011 at 03:44 UTC ( #930414=note: print w/ replies, xml ) Need Help??


in reply to @INC Errors

You can check @INC using a one-liner:

perl -e 'print join "\n", @INC';
Or simply run:
perl -V
The "." stands for the current directory; hence, it will always come last in the list. Here's a little snippet that I used a couple of years ago. I was experimenting with chromatic's Modern::Perl. It'll enable strict, warnings, and features.
#!perl use Modern::Perl; use File::PathList; use Data::Dumper::Concise; my $inc = File::PathList->new( paths => \@INC ); say Dumper $inc;
That was just to satisfy my obsession with Dumper:). You should also check to make sure that perl's in your path.


Comment on Re: @INC Errors
Select or Download Code
Re^2: @INC Errors
by Anonymous Monk on Oct 10, 2011 at 10:34 UTC

    You can check @INC using a one-liner:

    The error message already show the contents of @INC

    Or simply run: perl -V

    How do you think perl -V would work if @INC is empty and strict can't be found?

    You should also check to make sure that perl's in your path

    When perl gives you error messages, that means perl is in the path

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://930414]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2014-08-30 02:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (291 votes), past polls