#!/usr/bin/perl use strict; use warnings; use Test::More; use Test::Strict; use FindBin qw/$Bin/; # Check syntax, use strict and use warnings on all perl files local $Test::Strict::TEST_WARNINGS = 1; # `use v5.36` and later enable warnings (perl 5.35+); Test::Strict only # knows that for strict. Literal names, matched as `use NAME;`. push @Test::Strict::MODULES_ENABLING_WARNINGS, map {"v5.$_"} 36, 38, 40, 42; my @dirs = ('t', 'bin', "$Bin/../lib/"); all_perl_files_ok(@dirs); done_testing;