From 064aa7c5beeb51ccb21c6f03f716734af07360d6 Mon Sep 17 00:00:00 2001 From: Luca Ferrari Date: Mon, 25 Jan 2021 10:43:31 +0100 Subject: Use uppercase strings when comparing with the alphabet. --- challenge-097/luca-ferrari/raku/ch-1.p6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenge-097/luca-ferrari/raku/ch-1.p6 b/challenge-097/luca-ferrari/raku/ch-1.p6 index 970bd2379b..f8897ae78a 100644 --- a/challenge-097/luca-ferrari/raku/ch-1.p6 +++ b/challenge-097/luca-ferrari/raku/ch-1.p6 @@ -14,6 +14,6 @@ sub MAIN( Str $S = "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG", %cipher{ @alphabet[ $_ ] } = @alphabet.rotate( $N * -1 )[ $_ ] for ^@alphabet.elems; say "Encoding $S"; - print %cipher{ $_ }:exists ?? %cipher{ $_ } !! $_ for $S.comb; + print %cipher{ $_ }:exists ?? %cipher{ $_ } !! $_ for $S.uc.comb; say "\ndone"; } -- cgit