Apple suggested I install something the other day. (Java or something like 
that.) I did it. Now I discover that many of my Perl scripts don't work.

The problem is with @INC. It appears to have been upgraded to Perl 5.8.8. For 
example, when I try
   use Date::Parse qw(str2time);
I get the message
   /Volumes/VTN Docs/ My Perl/Tests/test5.pl:6: Can't locate Date/Parse.pm in 
@INC
followed by a list of what @INC contains:
   /Volumes/VTN Docs/ My Perl/Tests
   /usr/local/lib/perl5/5.8.8/darwin-2level
   /usr/local/lib/perl5/5.8.8
   /usr/local/lib/perl5/site_perl/5.8.8/darwin-2level
   /usr/local/lib/perl5/site_perl/5.8.8
   /usr/local/lib/

The package "Date/Parse.pm" is right where it has always been, along with a 
whole pile of other stuff, in
   /Library/Perl/5.8.6

So this is my question. How do I add "/Library/Perl/5.8.6" to @INC, without 
having to add
   use lib "/Library/Perl/5.8.6";
to every script ?

Regards,

Vic

Reply via email to