blib/lib/File/Next/OO.pm

filter: Statementstmt 33.3% 1 / 3 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 50.0% 2 / 4 SCAR 2.6
CC
1
Cov
33%
BEGIN
1.3
CRAP 1.3
« Build ↑ Summary
1 package File::Next::OO;
2  
3 $VERSION = '0.01_04';
4 4 ▶use File::Next 0.28;
Subroutine BEGIN: called CC=1 SCAR=2.6
5  
6 #use warnings;
7 use strict;
8  
9 BEGIN {
10  
11 sub new {
12 shift if ref $_[1] eq 'HASH';
13 my $i = File::Next::files(@_);
14 return wantarray ? do { my @t; while( my $f = $i->() ){ push @t, $f } @t } : $i;
15 }
16  
17 *files = \&new;
18 *name = \$File::Next::name;
19 *dir = \$File::Next::dir;
20  
21 }
22  
23 1;
24 __END__
« Build ↑ Summary