README.md (1159B) - raw
1 # Secret Handshake 2 3 Welcome to Secret Handshake on Exercism's Perl 5 Track. 4 If you need help running the tests or submitting your code, check out `HELP.md`. 5 6 ## Instructions 7 8 > There are 10 types of people in the world: Those who understand 9 > binary, and those who don't. 10 11 You and your fellow cohort of those in the "know" when it comes to 12 binary decide to come up with a secret "handshake". 13 14 ```text 15 1 = wink 16 10 = double blink 17 100 = close your eyes 18 1000 = jump 19 20 21 10000 = Reverse the order of the operations in the secret handshake. 22 ``` 23 24 Given a decimal number, convert it to the appropriate sequence of events for a secret handshake. 25 26 Here's a couple of examples: 27 28 Given the input 3, the function would return the array 29 ["wink", "double blink"] because 3 is 11 in binary. 30 31 Given the input 19, the function would return the array 32 ["double blink", "wink"] because 19 is 10011 in binary. 33 Notice that the addition of 16 (10000 in binary) 34 has caused the array to be reversed. 35 36 ## Source 37 38 ### Created by 39 40 - @bistik 41 42 ### Contributed to by 43 44 - @kytrinyx 45 - @m-dango 46 - @rfilipo 47 48 ### Based on 49 50 Bert, in Mary Poppins - http://www.imdb.com/title/tt0058331/quotes/qt0437047