Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: substrings that consist of repeating characters

by tybalt89 (Monsignor)
on Sep 27, 2020 at 20:23 UTC ( [id://11122271]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    my @sorted = map @{ $_ // [] }, reverse @substrings;
    
    use Data::Dump 'dd'; dd \@sorted;
    
  2. or download this
    [
      "CCCCCC",
    ...
      "TT",
      "TT",
    ]
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11122271]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-16 15:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found