Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

geoff (2013)

geoff
  reversethis-{gro ... om} {ta} {ffoeg}
http://www.modperlcookbook.org/

see http://www.modperlcookbook.org/~geoff/ [modperlcookbook.org] for personal information, links to presentations, GPG key, and so on.

Journal of geoff (2013)

Thursday September 05, 2002
10:22 AM

pod.t tweaking

[ #7544 ]
as andy pointed out, we've made some revisions. here's my latest (a derivitave of which I've included in my Apache::AuthDigest RFC)

use Test::More;

use File::Spec;
use File::Find qw(find);

use strict;

eval {
  require Test::Pod;
  Test::Pod->import;
};

if ($@) {
  plan skip_all => "Test::Pod required for testing POD";
}
else {
  my @files;

  find(
    sub { push @files, $File::Find::name if m!\.p(m|od|l)$! },
    File::Spec->catfile(qw(blib lib))
  );

  plan tests => scalar @files;

  foreach my $file (@files) {
    pod_ok($file);
  }
}


I guess there's always more tweaking to be done, but this is the last post for this bit here I think...
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I don't understand why there is an OO interface to File::Spec. I can see you using it above, but compared to using File::Spec::Functions, it's very verbose.

    Is it just that way for ease of implementation?

    -Dom