| 1 | package File::Next::OO; | ||||||||||||||
| 2 | |||||||||||||||
| 3 | 4 | $VERSION = '0.04'; | |||||||||||||
| 4 | 4 | ▶ | use File::Next 0.38; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 5 | |||||||||||||||
| 6 | #use warnings; | ||||||||||||||
| 7 | 4 | ▶ | use strict; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 8 | |||||||||||||||
| 9 | 4 | ▶ | BEGIN { | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 10 | |||||||||||||||
| 11 | 8 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: called CC=4 SCAR=13.9
Pod
documented
| |||||||||||||||
| 12 | 8 | ▶ | shift if ref $_[1] eq 'HASH'; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 13 | 8 | my $i = File::Next::files(@_); | |||||||||||||
| 14 | 7 | ▶ | return wantarray ? do { my @t; while( my $f = $i->() ){ push @t, $f } @t } : $i; | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 15 | } | ||||||||||||||
| 16 | |||||||||||||||
| 17 | 4 | *files = *new; | |||||||||||||
| 18 | 4 | *name = *File::Next::name; | |||||||||||||
| 19 | 4 | *dir = *File::Next::dir; | |||||||||||||
| 20 | |||||||||||||||
| 21 | 1 | ▶ | sub dirs { | ||||||||||||
|
Subroutine
dirs: called CC=4 SCAR=20.4
Pod
documented
| |||||||||||||||
| 22 | 1 | ▶ | shift if ref $_[1] eq 'HASH'; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 23 | 1 | my $i = File::Next::dirs(@_); | |||||||||||||
| 24 | 0 | ▶ | return wantarray ? do { my @t; while( my $f = $i->() ){ push @t, $f } @t } : $i; | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 25 | } | ||||||||||||||
| 26 | |||||||||||||||
| 27 | } | ||||||||||||||
| 28 | |||||||||||||||
| 29 | 4 | 1; | |||||||||||||
| 30 | __END__ | ||||||||||||||