SKIP: block

Test::More can cause an entire block of code to not run at all.

SKIP: {
    eval { require HTML::Lint };
    skip "HTML::Lint not installed", 2 if $@;
    my $lint = new HTML::Lint;
    isa_ok( $lint, "HTML::Lint" );
    $lint->parse( $html );
    is( $lint->errors, 0, "No errors found in HTML" );
}

The appropriate number of 'ok's will be output.

ok 23 # SKIP HTML::Lint not installed
ok 24 # SKIP HTML::Lint not installed

| toc |