CPAN won't install a module if it's not compatible with your perl version. If the module requires 5.10.1, it'll tell you and stop. What's more important to me is the minimum version
of perl. For example,
requires a minimum of 5.006, so you can check it like this:
my $obj = Perl::MinimumVersion->new(
Unfortunately, it only works with files on your disk: files, scripts, code, modules, etc.