Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Challenge: sort weekdays in week-order (elegantly and efficiently)

by bliako (Monsignor)
on Jul 21, 2022 at 14:50 UTC ( [id://11145635]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    monday:011011010110111101101110011001000110000101111001
    tuesday:01110100011101010110010101110011011001000110000101111001
    ...
    friday:011001100111001001101001011001000110000101111001
    saturday:0111001101100001011101000111010101110010011001000110000101111
    +001
    sunday:011100110111010101101110011001000110000101111001
    
  2. or download this
    for (qw/monday tuesday wednesday thursday friday saturday sunday/){
     print $_ .':'. join('', map { sprintf "%08b", ord($_) } split(//, lc 
    +$_))."\n";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-19 16:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found