Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by bliako (Monsignor)
on Jul 21, 2022 at 14:50 UTC ( #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? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2022-12-08 13:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?