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