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:
Nicholas Clark
Date:
June 26, 2008 02:08
Subject:
Re: [perl #34339][PATCH] "perldoc lib" doesn't describe actual behavior of "use lib"
Message ID:
20080626090826.GF94237@plum.flirble.org
On Wed, Jun 25, 2008 at 04:40:57PM +0200, Rene Bcker wrote:
Hmm, my mutt is being hateful              ^    ^

> Attached is a patch for lib_pm.PL

>  The current value of C<$archname> can be found with this command:
>  
>      perl -V:archname
>  
> +The corresponding command to get the current value of C<$version> is:
> +
> +    perl -V:version
> +
>  To avoid memory leaks, all trailing duplicate entries in @INC are
>  removed.

Aside - are we really avoiding leaks, or just avoiding waste?


On Wed, Jun 25, 2008 at 06:51:14PM +0200, H.Merijn Brand wrote:
> 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

> -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

Arguably I'm bikeshedding too, but I prefer Renée's. Yours assumes Unix shell
quoting rules. I'm not sure whether \| will do the same thing on the various
Win32 shells, VMS, or other places. Also, I think I prefer his KISS, even if
it is a bit more verbose. It doesn't introduce 2 concepts at once.

Nicholas Clark

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