The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
#!perl -T

use strict;

use Test::Builder::Tester tests => 2;
use Test::More;

BEGIN {
    use_ok( 'Test::Pod' );
}

BAD: {
    my $file = 't/cut-outside-block.pod';
    test_out( "not ok 1 - POD test for $file" );
    pod_file_ok( $file );
    test_fail(-1);
    test_diag(
	"$file (5): =cut found outside a pod block.  Skipping to next block."
    );
    test_test( "$file is bad" );
}