negativ_m has asked for the wisdom of the Perl Monks concerning the following question:
Hello All,
I have an array which looks like this:
my @ar1 = (text1.txt, text1a.txt, text2.txt, text54.txt,...text1g.txt,...text54f.txt,...);I would like to have always the last version of my names inside the array. The result should look like this:
my @ar2 = (text2.txt,...text1g.txt,...text54f.txt,...);I would appreciate some help. Thank you in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sorting array (updated)
by haukex (Archbishop) on Dec 05, 2016 at 14:58 UTC | |
|
Re: Sorting array
by Eily (Monsignor) on Dec 05, 2016 at 15:13 UTC | |
|
Re: Sorting array
by tybalt89 (Monsignor) on Dec 05, 2016 at 15:27 UTC | |
|
Re: Sorting array
by tybalt89 (Monsignor) on Dec 05, 2016 at 19:19 UTC | |
by negativ_m (Novice) on Dec 06, 2016 at 13:19 UTC | |
by poj (Abbot) on Dec 06, 2016 at 13:55 UTC | |
by tybalt89 (Monsignor) on Dec 06, 2016 at 17:56 UTC |