develooper Front page | perl.perl5.porters | Postings from June 2008

Re: [perl #34339][PATCH] "perldoc lib" doesn't describe actual behavior of "use lib"

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
June 25, 2008 23:54
Subject:
Re: [perl #34339][PATCH] "perldoc lib" doesn't describe actual behavior of "use lib"
Message ID:
b77c1dce0806252354i4e7f4254kcb68b0517f655700@mail.gmail.com
2008/6/25 H.Merijn Brand <h.m.brand@xs4all.nl>:
> On Wed, 25 Jun 2008 16:40:57 +0200, Renée Bäcker
> <renee.baecker@smart-websolutions.de> wrote:
>
> Attached is a patch for lib_pm.PL
>
> I would shorten that a bit to
>
> --- lib_pm.PL.orig      2008-06-25 13:58:11.000000000 +0200
> +++ lib_pm.PL   2008-06-25 13:57:11.000000000 +0200
> @@ -223,11 +223,17 @@
>  checks to see if a directory called $dir/$archname/auto exists.
>  If so the $dir/$archname directory is assumed to be a corresponding
>  architecture specific directory and is added to @INC in front of $dir.
> +lib.pm also checks if directories called $dir/$version and
> +$dir/$version/$archname exist and adds these directories to @INC.
>
> -The current value of C<$archname> can be found with this command:
> +The current values of C<$version> and C<$archname> can be found with
> +this command:
>
> -    perl -V:archname
> +    perl -V:version\|archname

This syntax (\|) is probably not very portable across command-line
interfaces, though.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About