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

Re: [rt.cpan.org #70622] Versions Disappear

From:
David Golden
Date:
September 8, 2011 06:14
Subject:
Re: [rt.cpan.org #70622] Versions Disappear
Message ID:
CAOeq1c9ahCeBg8ME-ZoKxhquSiGF7uUqw7SsY-OdLrE2RdAQXg@mail.gmail.com
On Thu, Sep 8, 2011 at 8:03 AM, Zefram <zefram@fysh.org> wrote:
> Can we please stop stepping on each other's toes in the global namespace?
> I'd like to see Module::*mumble*::loaded_version_of_package_as_object()
> and Module::*mumble*::loaded_version_of_package_as_string().  There's no
> need for either of them to be a method and thus occupy a very public and
> contested space.  I'd also like to see a check_loaded_version_of_package()
> function that doesn't get led astray by those naughty modules that use
> ->VERSION as an ersatz ->import.

+1

I wouldn't mind seeing it part of Class::Load (though it would add
version.pm as a requirement), since usually the case for it is "try
loading this module, then find out what version it claims to be and do
something specific based on the response".

-- David



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