in reply to Bootstrapping Makefile.PL with Apache::Bootstrap

Only a non-zero exit code is necessary, so I would write
my $ab = 0.06; eval { require Apache::Bootstrap; Apache::Bootstrap->VERSION($ab); 1 } or die "Apache::Bootstrap $ab required"; my $bs = Apache::Bootstrap->new({ mod_perl2 => 1.99022, mod_perl => 1.30 });
Actually I would just write use Apache::Bootstrap 0.06;?

Replies are listed 'Best First'.
Re^2: Bootstrapping Makefile.PL with Apache::Bootstrap
by redhotpenguin (Deacon) on Apr 28, 2009 at 07:51 UTC

    I started with 'use Apache::Bootstrap 0.06;', but that caused an UNKNOWN cpan testers failure, with the error "Can't locate Apache::Bootstrap...". So I checked the error number passed back to the shell for that failure and it was 1.

    I checked the error number passed to the shell for 'use 5.8.6;' pragma in a Makefile.PL that didn't have that version of perl, and the error number was 255. My theory is that Test::Harness or something is picking up that error code differently, since these occurrences are represented in CPAN tester reports as NA.

      I think that is not recommended:
      "Why am I getting a FAIL/UNKNOWN/NA report when prerequisites are not met?"

      Some early versions of CPAN Testers tools had bugs that did not properly catch when prerequisites were specified but not met. Please just ignore these reports.