Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by kcott (Archbishop)
on Jul 26, 2022 at 14:05 UTC ( [id://11145745]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
        say "'$day' needs Orc" unless exists $day_for->{$day};
        return $day_for->{$day} ||= eval lc substr $day, 0, 3;
    }
    
  2. or download this
    *** Check Orcish Manoeuvre is working ***
    'Mon' needs Orc
    ...
    sat
    SATURDAY
    Sat
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-03-29 01:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found