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