Last active
August 29, 2015 14:08
-
-
Save zmughal/b7df637ba92bf7f8a0e2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use v5.16; | |
no strict; # DANGER | |
no warnings; | |
# 43 + 10 = 53 | |
say"Happy birthday to ".($_-2?you:programmer)for+0..3 | |
; | |
# 49 + 10 = 59 | |
say"Happy birthday to ".qw(you programmer)[not$_-2]for+0..3 | |
; | |
# or one that has correct punctuation: | |
# 64 + 10 = 74 | |
say+(join+",\n",map{"Happy birthday to @{[$_-2?you:programmer]}"}0..3)."." | |
; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment