I want to ensure a best method to test whether a module has loaded. if not I will load it with require;
I see some people use such method :
my $module = "MyModule::ABC";
eval " require $module " unless $module->can('isa');
which use can('isa')
to test . but this may not working in new version of Perl ? which will true even the $module haven't loaded;
in some situation when Module is a OO module ,which has a new method generally. we can use :
to test .
is there a universal method for any module , to test loaded or not ?
very thanks your wisdom :)