in reply to Re^2: Construction of @INC by different versions of perl
in thread Construction of @INC by different versions of perl

Nevertheless, look at the lib.pm source code and/or documentation, especially the _get_dirs function.
  • Comment on Re^3: Construction of @INC by different versions of perl

Replies are listed 'Best First'.
Re^4: Construction of @INC by different versions of perl
by muntfish (Chaplain) on Jun 10, 2004 at 10:51 UTC

    Oops, I updated my earlier post before I saw your reply. Yes I did check lib.pm and found that it is using $Config{version} to find the version-specific subdirectory. Unfortunately $Config{version} is not defined in our perl 5.004_04 installation...

    s^^unp(;75N=&9I<V@`ack(u,^;s|\(.+\`|"$`$'\"$&\"\)"|ee;/m.+h/&&print$&;
      Either perl5.005 or perl5.6.0 was the first perl version which used version-dependent subdirectories. So for older perl versions you would strip the version part. Maybe one of the perldelta pages will give more information on this topic.