use strict; use Test::More; BEGIN { if (! $ENV{TEST_POD}) { plan skip_all => "Enable TEST_POD environment variable to test POD"; } else { eval "use Test::Pod::Coverage"; plan skip_all => "Test::Pod::Coverage required for testing pod coverage" if $@; Test::Pod::Coverage::all_pod_coverage_ok(); } }