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

Re: Module API

Thread Previous | Thread Next
From:
Johan Vromans
Date:
September 29, 2012 13:30
Subject:
Re: Module API
Message ID:
m2ipawwp10.fsf@phoenix.squirrel.nl
Jesse Luehrs <doy@tozt.net> writes:

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

Interesting...
Anyway,

  sub package_is_loaded { %{$_[0]."::"} }

-- Johan

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