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

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -