No such thing as a small change | |
PerlMonks |
Re^2: substrings that consist of repeating charactersby BillKSmith (Monsignor) |
on Sep 28, 2020 at 22:38 UTC ( [id://11122309]=note: print w/replies, xml ) | Need Help?? |
A slight simplification can be gained by using the 'nsort_by' function from List::UtilsBy (or its XS equivalent). You can also use the special variable '$,' rather than 'join' to control the print.
Bill
In Section
Seekers of Perl Wisdom
|
|