@INC set incorrectly

Posted by CFowler on 2007-01-25 12:27

I just installed Perl to debug a script and noticed I was having trouble accessing some libraries.
When I print out the @INC variable, it is set to the following:

D:/Perl/LibD:/Perl/site/lib.

Which appears to me like two paths combined as one. Where is the @INC set globally?

kevinw
ActiveState Staff
Thu, 2007-02-01 16:48

If you just did "print @INC;", that's the expected behaviour. What is the result of:

foreach my $i (@INC) {
    print "$i\n";
}

Cheers,

kjw