Functions and Subroutines


  1. Why to use subroutines?
  2. Subroutines
  3. Variable number of parameters
  4. Recursive subroutines
  5. Sort using a function
  6. Return a list
  7. Return several elements
  8. Error handling with eval - files
  9. Error handling with eval - two calls
  10. Exercise: Subroutines
  11. Exercise: Number guessing in sub
  12. Solution: Number guessing in sub