Get list of files matching a pattern AUTHORstmuk You want a list of filenames matching a pattern #!/usr/bin/env raku use v6; sub MAIN(:$dir = ".") { my @perl-files = dir $dir, test => /\.pl/; # returns a list of IO::Path objects for @perl-files.sort -> $io { say $io.basename; } } # vim: expandtab shiftwidth=4 ft=perl6