CPU: Perl, Fall 2005 Perl, Week 3: More Arrays, Context, Subroutines, Lexical Variables  

  1. Last Week
  2. Review: Operators
  3. Review: Precedence
  4. Review: Booleans
  5. Review: undef
  6. Review: Lists
  7. Review: Arrays
  8. pop
  9. push
  10. Try it
  11. shift
  12. unshift
  13. Arrays in Strings
  14. Arrays in Strings: Email Adresses
  15. Arrays in Strings: Single Values
  16. Arrays in Strings: Gotchas
  17. Arrays in Strings: Gotchas, 2
  18. foreach
  19. foreach Iterator Variable
  20. $_
  21. reverse
  22. sort
  23. Quick Breather
  24. Context
  25. Context Examples
  26. Concrete Context
  27. More Examples
  28. What Context Are They?
  29. Other List Contexts
  30. Other Scalar Contexts
  31. Scalars in List Context
  32. I Really, Really Want Scalar Context
  33. Standard Input as a List
  34. Try it
  35. Try it (solution)
  36. Try it (shorter)
  37. Another Breather
  38. Subroutines
  39. A Simple Subroutine
  40. Using the Subroutine
  41. Comparison with Scheme
  42. Implicit Return
  43. Try it
  44. Arguments
  45. Using Arguments
  46. Questions
  47. Lexical Variables
  48. my, Improved
  49. A Scheme Function
  50. A Perl Function
  51. Multiple Arguments
  52. &maximum
  53. More About Lexical Variables
  54. A Quick Aside: 'strict' pragma
  55. return
  56. Omit the Ampersand
  57. Tonight's Big Example
  58. Step 1: Start
  59. Step 2: &total
  60. Step 3: above_average
  61. Step 4: Print a Test
  62. Step 5: Run it
  63. Resources
Copyright © 2005 Ian Langworth