perl - How to programmatically know if a module is a Core module? -
i've got list of modules used in application. test if these modules part of perl core (if need installed during application deployment on fresh server environment).
is module::corelist module appropriate tool test , if not, how should deal this?
the following tell if module core module version of perl being used.
use module::corelist qw( ); if (exists $module::corelist::version{ $] }{'cgi'}) { print "yes\n"; } else { print "no\n"; }
note work "main" module of distribution.
Comments
Post a Comment