[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

/usr/local and @INC



Hello.

If somebody could enlighten me about perl's search path (@INC), I'd be
grateful. The value of @INC in Debian seems to be:

  /etc/perl

  /usr/local/lib/perl/5.8.8
  /usr/local/share/perl/5.8.8

  /usr/lib/perl5
  /usr/share/perl5

  /usr/lib/perl/5.8
  /usr/share/perl/5.8

  /usr/local/lib/site_perl
  .

I don't understand why the paths under /usr/local have to be so
version-specific, whereas the /usr counterparts are more general. I
thought an appropriate path could be:

  /etc/perl

  /usr/local/lib/perl/5.8
  /usr/local/share/perl/5.8

  /usr/local/lib/perl5
  /usr/local/share/perl5

  /usr/lib/perl/5.8
  /usr/share/perl/5.8

  /usr/lib/perl5
  /usr/share/perl5

  /usr/local/lib/site_perl
  .

Or something along the lines. Is there a rationale against that?

Thanks in advance,

-- 
Adeodato Simó                                     dato at net.com.org.es
Debian Developer                                  adeodato at debian.org
 
This is my boyfriend, Chester Fleet. [...] It's kind of a weird day to meet him
because he lost a bet with me, and that means that for the entire day, he can
only talk in clichés. It is so much fun.
                -- Tana Schrick


Reply to: