README.md (1855B) - raw
1 # Etl 2 3 Welcome to Etl 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 We are going to do the `Transform` step of an Extract-Transform-Load. 9 10 ## ETL 11 12 Extract-Transform-Load (ETL) is a fancy way of saying, "We have some crufty, legacy data over in this system, and now we need it in this shiny new system over here, so 13 we're going to migrate this." 14 15 (Typically, this is followed by, "We're only going to need to run this 16 once." That's then typically followed by much forehead slapping and 17 moaning about how stupid we could possibly be.) 18 19 ## The goal 20 21 We're going to extract some Scrabble scores from a legacy system. 22 23 The old system stored a list of letters per score: 24 25 - 1 point: "A", "E", "I", "O", "U", "L", "N", "R", "S", "T", 26 - 2 points: "D", "G", 27 - 3 points: "B", "C", "M", "P", 28 - 4 points: "F", "H", "V", "W", "Y", 29 - 5 points: "K", 30 - 8 points: "J", "X", 31 - 10 points: "Q", "Z", 32 33 The shiny new Scrabble system instead stores the score per letter, which 34 makes it much faster and easier to calculate the score for a word. It 35 also stores the letters in lower-case regardless of the case of the 36 input letters: 37 38 - "a" is worth 1 point. 39 - "b" is worth 3 points. 40 - "c" is worth 3 points. 41 - "d" is worth 2 points. 42 - Etc. 43 44 Your mission, should you choose to accept it, is to transform the legacy data 45 format to the shiny new format. 46 47 ## Notes 48 49 A final note about scoring, Scrabble is played around the world in a 50 variety of languages, each with its own unique scoring table. For 51 example, an "E" is scored at 2 in the Māori-language version of the 52 game while being scored at 4 in the Hawaiian-language version. 53 54 ## Source 55 56 ### Created by 57 58 - @bistik 59 60 ### Contributed to by 61 62 - @darksuji 63 - @kytrinyx 64 - @m-dango 65 - @rfilipo 66 67 ### Based on 68 69 The Jumpstart Lab team - http://jumpstartlab.com