Pipe/Tube/Glob.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 2 totaltotal 92.8% 26 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Pipe/Tube.pm ↑ Summary Pipe/Tube/Chomp.pm »
1 package Pipe::Tube::Glob;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use base 'Pipe::Tube';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 our $VERSION = '0.06';
9  
10 2 ▶sub init {
Subroutine init: called CC=1 SCAR=0.0
Pod undocumented
11 2 my ($self, @patterns) = @_;
12 2 @{ $self->{patterns} } = @patterns;
13
14 2 return $self;
15 }
16  
17 2 ▶sub finish {
Subroutine finish: called CC=1 SCAR=0.0
Pod undocumented
18 2 my ($self) = @_;
19  
20 2 return glob join " ", @{ $self->{patterns} };
21 }
22  
23 # this module should be rewritten using opendir
24 # the patterns should be either unix wilde cards or Perl regexes (with a flag indicating which one)
25 #
26  
27 1 1;
28  
« Pipe/Tube.pm ↑ Summary Pipe/Tube/Chomp.pm »