diff options
| author | Mohammad S Anwar <mohammad.anwar@yahoo.com> | 2020-05-30 13:28:56 +0100 |
|---|---|---|
| committer | Mohammad S Anwar <mohammad.anwar@yahoo.com> | 2020-05-30 13:28:56 +0100 |
| commit | 7f1c2ee1209dc2e5390b0042d0d33abf329be83e (patch) | |
| tree | 718c94de5bd18ce2d6e71a1ceaa1a1176d2e8158 | |
| parent | 6d57965f39180574a99477e983c688504c40a78c (diff) | |
| download | perlweeklychallenge-club-7f1c2ee1209dc2e5390b0042d0d33abf329be83e.tar.gz perlweeklychallenge-club-7f1c2ee1209dc2e5390b0042d0d33abf329be83e.tar.bz2 perlweeklychallenge-club-7f1c2ee1209dc2e5390b0042d0d33abf329be83e.zip | |
- Fixed perl solution.
| -rw-r--r-- | challenge-062/mohammad-anwar/perl/ch-1.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge-062/mohammad-anwar/perl/ch-1.pl b/challenge-062/mohammad-anwar/perl/ch-1.pl index 396cbda970..b3bce0907e 100644 --- a/challenge-062/mohammad-anwar/perl/ch-1.pl +++ b/challenge-062/mohammad-anwar/perl/ch-1.pl @@ -41,7 +41,7 @@ sub sort_data { } } else { - foreach (reverse sort { lc $a->[0] cmp lc $b->[0] || lc $a->[1] cmp $b->[1] } @source) { + foreach (reverse sort { lc $a->[0] cmp lc $b->[0] || $a->[1] cmp $b->[1] } @source) { push @$sorted, join "@", @$_; } } |
