aboutsummaryrefslogtreecommitdiff
path: root/challenge-005/john-barrett
diff options
context:
space:
mode:
authorJohn Barrett <john@jbrt.org>2019-04-25 00:09:39 +0100
committerJohn Barrett <john@jbrt.org>2019-04-25 00:09:39 +0100
commitb1acdbbefdbea5a4db9aeec47f7a9a53610c9035 (patch)
tree0b7dc1e29011346ba6710847c551bb6d87d9b44e /challenge-005/john-barrett
parentc91621414ceb3bea84d5db6cf7396d05ea64ace8 (diff)
downloadperlweeklychallenge-club-b1acdbbefdbea5a4db9aeec47f7a9a53610c9035.tar.gz
perlweeklychallenge-club-b1acdbbefdbea5a4db9aeec47f7a9a53610c9035.tar.bz2
perlweeklychallenge-club-b1acdbbefdbea5a4db9aeec47f7a9a53610c9035.zip
formatting
Diffstat (limited to 'challenge-005/john-barrett')
-rwxr-xr-xchallenge-005/john-barrett/perl5/ch-2.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge-005/john-barrett/perl5/ch-2.pl b/challenge-005/john-barrett/perl5/ch-2.pl
index 7a63a70f95..0235c417bc 100755
--- a/challenge-005/john-barrett/perl5/ch-2.pl
+++ b/challenge-005/john-barrett/perl5/ch-2.pl
@@ -13,7 +13,7 @@ my %signatures;
$signatures{ sortedlc( $_ ) }++ for @dict;
my %by_count = reverse %signatures;
-my $max = ( sort { $b <=> $a } keys %by_count)[0];
+my $max = ( sort { $b <=> $a } keys %by_count )[0];
my $word = $by_count{$max};
my $wordlength = length $word;