I'm about to add a POD test program to my phalanx distro. Before I do that, just want to check I'm using the best model. I plan on using the one from WWW::Mechanize (shown below) -- unless someone can suggest a better model.
Is it worth trying to agree on a de facto standard name for such a beast: 99-pod.t/99_pod.t/99.pod.t/99pod.t? use Test::More; use File::Spec; use File::Find; use strict; eval { require Test::Pod; }; my $ok = !$@ && ($Test::Pod::VERSION >= '0.95'); if (!$ok) { plan skip_all => "Test::Pod v0.95 required for testing POD"; } else { Test::Pod->import; my @files; my $blib = File::Spec->catfile(qw(blib lib)); find( sub {push @files, $File::Find::name if /\.p(l|m|od)$/}, $blib); plan tests => scalar @files; foreach my $file (@files) { pod_file_ok($file); } } /-\ http://personals.yahoo.com.au - Yahoo! Personals New people, new possibilities. FREE for a limited time.