Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my $w = Date.today.day-of-week;
- given $w {
- when 3 {
- "Hump day".say;
- }
- when 5 {
- "Thank God It's Friday".say;
- }
- when 6..7 {
- "Weekend".say;
- }
- default {
- "Week".say;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement