Is it possible in Perl6 to find all installed modules whose file name matches the template?
In Perl5, I would write this as follows:
use File::Spec::Functions qw( catfile );
my %installed;
for my $dir ( @INC ) {
my $glob_pattern = catfile $dir, 'App', 'DBBrowser', 'DB', '*.pm';
map { $installed{$_}++ } glob $glob_pattern;
}
source
share