Skip to content

Commit 86489a3

Browse files
committed
Need to bind variable so as not to flatten LoL
This then retains the List structure in the assigned variable. Otherwise it gets completely flattened into an Array.
1 parent 2b08b3c commit 86489a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

categories/euler/prob059-andreoss.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ sub infix:<XOR>(@cipher, @password) {
5858
sub guess-password(Str $w, @cipher) {
5959
my @word = as-code $w;
6060

61-
my @chunks = @cipher.rotor(@word.elems => - (@word.elems -1));
61+
my @chunks := @cipher.rotor((@word.elems) => -(@word.elems - 1));
6262
my %tries;
6363
my $offset = 0;
6464

0 commit comments

Comments
 (0)