aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Senn <mark@pier.ecn.purdue.edu>2019-04-28 11:52:12 -0400
committerMark Senn <mark@pier.ecn.purdue.edu>2019-04-28 11:52:12 -0400
commit8bc87b6f50c9f6c4f31879c93d3297306905380b (patch)
tree80b650be4d9a9b79e5a546d7877a27963752412e
parentfba02498a4fb1475990082af4c0365d5ab567b14 (diff)
downloadperlweeklychallenge-club-8bc87b6f50c9f6c4f31879c93d3297306905380b.tar.gz
perlweeklychallenge-club-8bc87b6f50c9f6c4f31879c93d3297306905380b.tar.bz2
perlweeklychallenge-club-8bc87b6f50c9f6c4f31879c93d3297306905380b.zip
Changed join()
to join -mark
-rw-r--r--challenge-005/mark-senn/perl6/ch-1.p64
-rw-r--r--challenge-005/mark-senn/perl6/ch-2.p64
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";