Front page | perl.perl5.porters |
Postings from April 2010
Re: Try::Tiny in Core?
Thread Previous
|
Thread Next
From:
David Golden
Date:
April 9, 2010 20:09
Subject:
Re: Try::Tiny in Core?
Message ID:
v2y5d4beb41004092009u46a8ee6ci44ca7788634c3b7a@mail.gmail.com
On Fri, Apr 9, 2010 at 8:18 PM, Abigail <abigail@abigail.be> wrote:
> On Mon, Apr 05, 2010 at 03:05:16PM -0400, David Golden wrote:
>> I already have an experimental branch of CPAN.pm that auto-detects
>> when the user does not have write permissions to the current perl and
>> sets up the equivalent of what local::lib does automatically
>> (including offering to modify .bashrc, .cshrc or the Windows Registry
>> as necessary). Much of it has been cribbed from local::lib and just
>> integrated into CPAN's auto-config.
>>
>> mst and I have discussed options for better integration -- possibly
>> just including local:;lib into core and using it directly rather than
>> copying/pasting code from it.
>
> Hmmm. I'd be mighty unhappy if 'cpan -i Foo::Module' installed Foo::Module
> somewhere in my home dir instead of failing with permission errors because
> I forgot the right 'sudo' incantation.
That's not going to happen. I'm not *that* crazy. :-)
The check only happens during configuration. If it detects that you
have no write access to perl, you're prompted for whether you want to
set up a local library. If you say yes, it sets it up. If you say
no, you have to remember your sudo incantations.
-- David
Thread Previous
|
Thread Next