diff options
| -rw-r--r-- | challenge-005/mark-senn/perl6/ch-1.p6 | 4 | ||||
| -rw-r--r-- | challenge-005/mark-senn/perl6/ch-2.p6 | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/challenge-005/mark-senn/perl6/ch-1.p6 b/challenge-005/mark-senn/perl6/ch-1.p6 index 02c96d7e89..b80e27a333 100644 --- a/challenge-005/mark-senn/perl6/ch-1.p6 +++ b/challenge-005/mark-senn/perl6/ch-1.p6 @@ -26,7 +26,7 @@ my Array %hash; for (@word) { # The key for "family" is "amfily". - my $key = .comb(/./).sort.join(); + my $key = .comb(/./).sort.join; # Add the current word to the hash. %hash{$key}.push($_); } @@ -46,7 +46,7 @@ for (@word) my $word = @word.pick; # Convert $word to $key. -my $key = $word.comb(/./).sort.join(); +my $key = $word.comb(/./).sort.join; # Print the output. print "Challenge 1\n"; diff --git a/challenge-005/mark-senn/perl6/ch-2.p6 b/challenge-005/mark-senn/perl6/ch-2.p6 index 02c96d7e89..b80e27a333 100644 --- a/challenge-005/mark-senn/perl6/ch-2.p6 +++ b/challenge-005/mark-senn/perl6/ch-2.p6 @@ -26,7 +26,7 @@ my Array %hash; for (@word) { # The key for "family" is "amfily". - my $key = .comb(/./).sort.join(); + my $key = .comb(/./).sort.join; # Add the current word to the hash. %hash{$key}.push($_); } @@ -46,7 +46,7 @@ for (@word) my $word = @word.pick; # Convert $word to $key. -my $key = $word.comb(/./).sort.join(); +my $key = $word.comb(/./).sort.join; # Print the output. print "Challenge 1\n"; |
