Lord knows I must be stupid because this took way too long:

if (eval {require Apache::Test}) {

    plan(tests => 1, have('AxKit', 'mod_perl', &have_apache(1), &have_lwp));

} else {
    require Test::More;

    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