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

Re: Module API

Thread Previous | Thread Next
Johan Vromans
September 30, 2012 01:52
Re: Module API
Message ID:
Leon Timmermans <> writes:

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

You hit the nail on the head ;)

That's why I think we need a much better package/module load/loaded API.
One that can only be implemented by hooking into the Perl guts.

-- Johan

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