I am puzzled by this.
I have code like this:
my @files = dir("$.source_dir").map({ $_.basename });
for @files -> $tmpl {
if $tmpl !~~ m/\.txt$/ {
debug("Skipping '$tmpl' it does not end with .txt");
next;
}
debug("Source file $tmpl");
}
and sometimes(!) it skips when it encounters a file called 'perl6-zip.txt'
or a file called 'perl6-write-file.txt'
More specifically when I ran the above code (part of
https://github.com/szabgab/Perl6-Maven )
on https://github.com/szabgab/perl6maven.com on this commit:
https://github.com/szabgab/perl6maven.com/commit/672ca19f8cc0cf893568f93c4c1488c0cd777f7c
everything worked fine, but when I ran the same code on the next commit (
https://github.com/szabgab/perl6maven.com/commit/75e188288638dea03a0b3329b249f3685859e701
) then suddenly it started to skip those two files.