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. Debugging an array
  7. foreach loop on numbers
  8. Array index (menu)
  9. Load Module
  10. Command line parameters
  11. Process command line parameters, use modules
  12. Module documentation
  13. process CSV file
  14. process csv file (short version)
  15. One-liner sum numbers in CSV file
  16. process csv file using Text::CSV
  17. process csv file using Text::CSV
  18. Join
  19. Labels
  20. Exercise: Make the color selector user friendly
  21. Exercise: improve the color selector
  22. Exercise: Improve the Number Guessing game
  23. Solution: improved color selector
  24. Solution: Improve the Number Guessing game