Lists and Arrays


While a scalar is single value a list is a bunch of single values. A scalar value can be stored in a scalar variable. A list can be stored in a list variable. It is called and array.

  1. List Literals, list ranges
  2. List Assignment
  3. loop over elements of list with foreach
  4. Create an Array, loop over with foreach
  5. Array Assignment
  6. foreach loop on numbers
  7. Array index (menu)
  8. Load Module
  9. Command line parameters
  10. Process command line parameters, use modules
  11. Module documentation
  12. process CSV file
  13. process csv file (short version)
  14. One-liner sum numbers in CSV file
  15. process csv file using Text::CSV
  16. process csv file using Text::CSV
  17. Join
  18. Labels
  19. Exercise: Make the color selector user friendly
  20. Exercise: improve the color selector
  21. Exercise: Improve the Number Guessing game
  22. Solution: improved color selector
  23. Solution: Improve the Number Guessing game