This may be a frequently-asked question, but I've got installed modules which CPAN says are "up to date" but Perl can't find.

@INC contains:
  /System/Library/Perl/5.8.1/darwin-thread-multi-2level
  /System/Library/Perl/5.8.1
  /Library/Perl/5.8.1/darwin-thread-multi-2level
  /Library/Perl/5.8.1
  /Library/Perl
  /Network/Library/Perl/5.8.1/darwin-thread-multi-2level
  /Network/Library/Perl/5.8.1
  /Network/Library/Perl

but when I look for HTML::TokeParser, I find it in

  /Library/Perl/darwin/HTML/TokeParser.pm

so what should I do? I can't see exactly how CPAN (or a previous version of it) decided on that as the install location -- can I change the Config for CPAN to fix that?

I know, of course, that I can have "use lib" to add that to @INC for each script, and I could presumably hack that for the Terminal environment somehow, but I'd rather not -- can I force that into @INC in some kind of system-wide way?

One more question, sorry -- if I just copied the TokeParser.pm into the right dir, somewhere Perl *is* looking for it, would that be a problem? Assuming that modules are pure-perl, and don't involved header files and stuff, can I do this? Or will they misbehave because they find themselves in the 'wrong place' and I should just reinstall?

Thanks for your patience,

jh



Reply via email to