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.

Replies are listed 'Best First'.
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