Subject: | is_class_loaded fails to detect Sub::Util is not fully loaded |
This is a known and documented issue with is_class_loaded, but I still open this ticket to advertise that the issue happens with module from a major CPAN distribution: Sub::Util from Scalar-List-Utils-1.45.tar.gz.
The same issue occurs with Class::Load::XS 0.09 (RT#114125).
$ perl -MClass::Load::PP -E 'say Class::Load::PP::is_class_loaded("Sub::Util"); say $INC{"Sub/Util.pm"}; say for keys %{"Sub::Util::"}'
1
set_prototype
subname
set_subname
$ perl -MSub::Util -MClass::Load::PP -E 'say Class::Load::PP::is_class_loaded("Sub::Util"); say $INC{"Sub/Util.pm"}; say for keys %{"Sub::Util::"}'
1
/home/omengue/.plenv/versions/5.10.1/lib/perl5/5.10.1/x86_64-linux/Sub/Util.pm
set_prototype
EXPORT
set_subname
EXPORT_OK
import
ISA
subname
BEGIN
VERSION
prototype
--
Olivier Mengué - http://perlresume.org/DOLMEN
The same issue occurs with Class::Load::XS 0.09 (RT#114125).
$ perl -MClass::Load::PP -E 'say Class::Load::PP::is_class_loaded("Sub::Util"); say $INC{"Sub/Util.pm"}; say for keys %{"Sub::Util::"}'
1
set_prototype
subname
set_subname
$ perl -MSub::Util -MClass::Load::PP -E 'say Class::Load::PP::is_class_loaded("Sub::Util"); say $INC{"Sub/Util.pm"}; say for keys %{"Sub::Util::"}'
1
/home/omengue/.plenv/versions/5.10.1/lib/perl5/5.10.1/x86_64-linux/Sub/Util.pm
set_prototype
EXPORT
set_subname
EXPORT_OK
import
ISA
subname
BEGIN
VERSION
prototype
--
Olivier Mengué - http://perlresume.org/DOLMEN