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

Re: Module API

Thread Previous | Thread Next
September 30, 2012 06:18
Re: Module API
Message ID:
On 30 September 2012 10:52, Johan Vromans <> wrote:
> 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.

So propose one. What does the api look like?


perl -Mre=debug -e "/just|another|perl|hacker/"

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