How to display NA in CPAN Testers
How to display NA in CPAN Testers?
I asked qustion "I want to display NA instead of UNKKONW in CPAN Testers"
I get some answers.
Thank you for everone!
I write a example to to display NA in CPAN Testers.
use 5.008007; use ExtUtils::MakeMaker;# Check supported environment
{
# SPVM only support 64bit integer Perl
my $ivsize = $Config{ivsize};
if ($ivsize < 8) {
warn "SPVM don't support the Perl which \"ivsize\" is lower than 8\n";
die "OS unsupported\n";
}# SPVM only support NetBSD 7+
if ($Config{osname} eq 'netbsd' && $Config{osvers} < 7) {
warn "SPVM don't support NetBSD 6, 5, 4, 3, 2, 1";
die "OS unsupported\n";
}
}
If you display NA in CPAN Testers, you write
die "OS unsupported\n";
If you know the reason, you can print warning message
warn "SPVM don't support the Perl which \"ivsize\" is lower than 8\n";
Leave a comment