develooper Front page | perl.perl5.porters | Postings from February 2011

Re: [rt.cpan.org #65284] Module broken with 5.13.x development perl versions

Thread Previous | Thread Next
From:
Eric Brine
Date:
February 1, 2011 14:39
Subject:
Re: [rt.cpan.org #65284] Module broken with 5.13.x development perl versions
Message ID:
AANLkTikyBje9PpHtmo+TF82zKwGJ6XD8n2Nf-UgPvOQc@mail.gmail.com
On Tue, Feb 1, 2011 at 5:26 PM, Philippe Bruhat (BooK) <
philippe.bruhat@free.fr> wrote:

> So either base.pm pick a default version that is a better number
> than -1, or VERSION makes a special case for -1.
>

That would be a change in its documented behaviour, and if that's
acceptable, there are better fixes than picking another arbitrary string.

The minimal change would be vivify *VERSION without setting $VERSION.

Of course, it could stop being invasive completely and track which modules
it attempted to load in a hash instead of setting $VERSION or *VERSION. If
memory usage is a concern, it could use the hash only when *Module::VERSION
and $INC{'Module.pm'} don't exist.

- Eric

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