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

Re: Module API

Thread Previous | Thread Next
Leon Timmermans
September 29, 2012 13:32
Re: Module API
Message ID:
On Sat, Sep 29, 2012 at 10:30 PM, Johan Vromans <> wrote:
> Interesting...
> Anyway,
>   sub package_is_loaded { %{$_[0]."::"} }

That checks the existence of a package in the symbol table, not the
loading or not of a module. After require Foo::Bar, %Foo:: will exist,
even though Foo was never loaded.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About