Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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.

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://930414]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2018-05-27 14:28 GMT
Find Nodes?
    Voting Booth?