in reply to @INC Errors

@INC normally contains ., unless running in taint mode. @INC should never only contain ., which appears to be your problem. Something changed in your environment.


Improve your skills with Modern Perl: the free book.

Replies are listed 'Best First'.
Re^2: @INC Errors
by ikegami (Patriarch) on Oct 09, 2011 at 05:41 UTC
    This problem would be caused by an inability to access Perl's library directories. Maybe you don't have permission anymore, or maybe the directories are gone.

      Does perl remove from @INC at startup (or module load time) if it can't stat those directories? I've never seen that. Clever.


      Improve your skills with Modern Perl: the free book.

        It does for me with ActivePerl (which is a relocatable build).
Re^2: @INC Errors
by perl.j (Pilgrim) on Oct 09, 2011 at 13:02 UTC
    So how do I fix it?
    --perl.j

      Figure out what changed in your environment. Check that the directories in perl -V exist and have permissions which allow you to read them.


      Improve your skills with Modern Perl: the free book.

        I get the following error when running perl -V: Can't locate Config.pm in @INC (@INC contains: .).

        BEGIN failed--compilation aborted.
        --perl.j