aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthiasMuth <99873492+MatthiasMuth@users.noreply.github.com>2023-02-26 08:43:21 +0100
committerGitHub <noreply@github.com>2023-02-26 08:43:21 +0100
commitcf98369e63c348ff95884b90ff8576c13246594f (patch)
treeadaa5e4279110ca32bda00061800be7659fe0f7d
parentc1605af3835113bd72a02170d473cc913782201d (diff)
downloadperlweeklychallenge-club-cf98369e63c348ff95884b90ff8576c13246594f.tar.gz
perlweeklychallenge-club-cf98369e63c348ff95884b90ff8576c13246594f.tar.bz2
perlweeklychallenge-club-cf98369e63c348ff95884b90ff8576c13246594f.zip
Update README.md
-rw-r--r--challenge-205/matthias-muth/README.md5
1 files changed, 2 insertions, 3 deletions
diff --git a/challenge-205/matthias-muth/README.md b/challenge-205/matthias-muth/README.md
index 46a1b56108..758f229f45 100644
--- a/challenge-205/matthias-muth/README.md
+++ b/challenge-205/matthias-muth/README.md
@@ -46,16 +46,15 @@ from `List::Util`
(which *is* a core module!),
I stumbled over the `uniq` function in the [`List::Util` documentation](https://perldoc.perl.org/List::Util#uniq)!
-`Uniq` has been in `List::Util` since its version 1.44 (see [here](https://metacpan.org/dist/Scalar-List-Utils/changes)), which is part of perl version 5.25.1 (according to `$ corelist List::Util 1.44`), which was released on 2016-05-20 (using `$ corelist -r 5.25.1`).
+`Uniq` has been in `List::Util` since its version 1.44, and an improved version in 1.45 (see [here](https://metacpan.org/dist/Scalar-List-Utils/changes)), which is part of perl version 5.25.1 (according to `$ corelist List::Util 1.45`), which was released on 2016-05-20 (using `$ corelist -r 5.25.1`).
So for more current versions of perl the solution can look like this:
```perl
-use v5.25.1;
use strict;
use warnings;
-use List::Util qw( uniq );
+use List::Util 1.45 qw( uniq );
sub third_highest {
my @a = uniq reverse sort @_;