From 8bc87b6f50c9f6c4f31879c93d3297306905380b Mon Sep 17 00:00:00 2001 From: Mark Senn Date: Sun, 28 Apr 2019 11:52:12 -0400 Subject: Changed join() to join -mark --- challenge-005/mark-senn/perl6/ch-1.p6 | 4 ++-- 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"; -- cgit