| 1 | package ExtUtils::Liblist; | ||
| 2 | |||
| 3 | 51 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 51 | our $VERSION = '7.13_01'; | |
| 6 | 51 | $VERSION = eval $VERSION; | |
| 7 | |||
| 8 | 51 | ▶ | use File::Spec; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 51 | require ExtUtils::Liblist::Kid; | |
| 10 | 51 | our @ISA = qw(ExtUtils::Liblist::Kid File::Spec); | |
| 11 | |||
| 12 | # Backwards compatibility with old interface. | ||
| 13 | sub ext { | ||
| 14 | 120 | ▶ | goto &ExtUtils::Liblist::Kid::ext; |
|
Subroutine
ext: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 15 | } | ||
| 16 | |||
| 17 | sub lsdir { | ||
| 18 | 8 | ▶ | shift; |
|
Subroutine
lsdir: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 19 | 8 | my $rex = qr/$_[1]/; | |
| 20 | 8 | opendir my $dir_fh, $_[0]; | |
| 21 | 8 | my @out = grep /$rex/, readdir $dir_fh; | |
| 22 | 8 | closedir $dir_fh; | |
| 23 | 8 | return @out; | |
| 24 | } | ||
| 25 | |||
| 26 | __END__ | ||