Slash Boxes
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

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • But the syntax you gave is exactly the syntax for plan under Test::More:
    use Test::More;

    opendir( D, '/etc' ) or die $!;
    my @files = grep { -f } readdir( D );

    plan tests => @files;

    # ...

    See, nice and simple. No BEGIN blocks required. And, as somebody else mentioned, there's always no_plan if you're feeling lazy.