I want to check if a few modules are newer from some version.
I am checking if they exist, e.g.:
(code modified from Perl CookBook) Can I somehow check for the module version? I thought that eval "require module version" would work. Any suggestions ?? Thank youBEGIN { my $mod = 'File::Spec'; unless (eval "require $mod") { print "couldn't load $mod: $@"; } }
In reply to checking module version by diamantis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |