On Mon, Feb 22, 2010 at 03:41:07PM +1100, Damon Atkins wrote: > An alternative would be say PERL5LIBTREE list of directories separated > by : layout in the following standard > > The following tree would be search for each listed path under > PERL5TREE=path1:path2 > path1:path1/site_perl/version/archname:path1/site_perl/version:path1/site_perl > path2:path2/site_perl/version/archname:path2/site_perl/version:path2/site_perl > > version e.g. 5.10.0 > archname= i86pc-solaris-64int or i686-linux-thread-multi etc > > Which would make it compatible with the CPAN installer tree. Sort of exactly like PERL5LIB already does? $ PERL5LIB=p5lib:p5lib2 /home/nclark/Sandpit/5101g-clean/bin/perl -le 'print foreach @INC' p5lib/5.10.1/i686-linux p5lib/5.10.1 p5lib p5lib2/5.10.1/i686-linux p5lib2/5.10.1 p5lib2 /home/nclark/Sandpit/5101g-clean/lib/perl5/5.10.1/i686-linux /home/nclark/Sandpit/5101g-clean/lib/perl5/5.10.1 /home/nclark/Sandpit/5101g-clean/lib/perl5/site_perl/5.10.1/i686-linux /home/nclark/Sandpit/5101g-clean/lib/perl5/site_perl/5.10.1 . $ PERL5LIB=p5lib:p5lib2 /home/nclark/Sandpit/589g-clean/bin/perl -le 'print foreach @INC' p5lib/5.8.9/i686-linux p5lib/5.8.9 p5lib p5lib2/5.8.9/i686-linux p5lib2/5.8.9 p5lib2 /home/nclark/Sandpit/589g-clean/lib/perl5/5.8.9/i686-linux /home/nclark/Sandpit/589g-clean/lib/perl5/5.8.9 /home/nclark/Sandpit/589g-clean/lib/perl5/site_perl/5.8.9/i686-linux /home/nclark/Sandpit/589g-clean/lib/perl5/site_perl/5.8.9 . It's documented tersely in perlrun, but without an example. Patches to improve the documentation are always welcome, particularly from people who *aren't* intimately familiar with it, as they are the only ones really qualified to say where a new reader would expect to find something. Nicholas ClarkThread Previous | Thread Next