my @logname = lines "qr.txt".IO;
my @mysql = lines "ifo.txt".IO;
my $diff = @logname.unique (&) @mysql.unique;
.say for $diff.keys.sort;
sub MAIN(Str $file1, $file2) {
my @logname = lines "$file1".IO;
my @mysql = lines "$file2".IO;
my $diff = @logname.unique (&) @mysql.unique;
.say for $diff.keys.sort;
}
my @a = [1,2,3,4,5,6,7,9,10,12];
my $a = @a.minmax;
($_ ∈ @a)?? .say !! "".say for $a.flat;
say [-] <10 5 3>;
say [-] 10;
my $keywords = set <if for unless while>;
sub has-keyword(*@words) {
for @words -> $word {
return True if $word (elem) $keywords;
}
False;
}
say has-keyword 'not', 'one', 'here';
say has-keyword 'but', 'here', 'for';
my @a = [1,2,3,4,5,6,7,9,10,12];
my $a = @a.minmax;
($_ ∈ @a)?? .say !! "".say for $a.flat;