Lord knows I must be stupid because this took way too long:
if (eval {require Apache::Test}) {
Apache::Test->import();
plan(tests => 1, have('AxKit', 'mod_perl', &have_apache(1), &have_lwp));
ok(1);
} else {
require Test::More;
Test::More->import();
plan(skip_all => 'Apache::Test not installed. Skipping AxKit XSP tests.');
};
I used require/import instead of use because of this warning/error:
<samp>main::ok() called too early to check prototype at - line 8.</samp>
Why understand the problem when I can just avoid it? :-)
See more posts about: perl |
All Categories