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

Re: Module API (Was: Re: Taking CPANPLUS out of core)

Thread Previous | Thread Next
From:
Jesse Luehrs
Date:
September 29, 2012 13:12
Subject:
Re: Module API (Was: Re: Taking CPANPLUS out of core)
Message ID:
20120929201224.GO11137@tozt.net
On Sat, Sep 29, 2012 at 10:10:49PM +0200, Johan Vromans wrote:
> David Golden <xdg@xdg.me> writes:
> 
> > I favor keeping Module::Loaded (along with Module::Load::Conditional
> > and Module::Load). Having a nice core API to do the sort of thing
> > people often screw up messing with %INC or eval/requires make sense.
> 
> I've always hated the fact that Module::Loaded and friends duplicate the
> code that Perl already has internally. A 'nice core API' would be a
> simple XS wrapper to the perl internal functions.
> 
> It might also prevent surprises. For example, if Foo.pm provides
> packages Foo and Bar, Module::Loaded will only report a result for Foo
> and not for Bar.

This information in particular is something that perl itself doesn't
even have internally.

-doy

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