P is for Practical | |
PerlMonks |
module loaded testby chinaxing (Acolyte) |
on Jun 27, 2013 at 03:20 UTC ( [id://1040900]=perlquestion: print w/replies, xml ) | Need Help?? |
chinaxing has asked for the wisdom of the Perl Monks concerning the following question: Hi, everyone, 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 : 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 :)
Back to
Seekers of Perl Wisdom
|
|