61

Variables
Associative Array Example

  • The typical application for an associative array is to statically map one sequence of values to another

  • The following application uses more Perl syntax than we have learned so far, but how the associative array works is what's important


    Exercise
    1. Run the mc example script (a Morse Code converter).
      The script reads input lines from your keyboard.
    2. You can type letters and numbers to output Morse Code,
      or, you can type Morse Code to output letters and numbers.
    3. Take a look at the script itself (click the "mc" icon).
    No
    Hint
    To
    Start

    mc