Perl References

  1. Uses cases for references
  2. References
  3. Array References
  4. Hash References
  5. Scalar references
  6. Subroutine references
  7. Passing values to a function
  8. Add two (or more) arrays
  9. Add two arrays
  10. Array References
  11. Process arrays without copying
  12. Scope of variables
  13. Reference counting
  14. More Reference Counting
  15. Process arrays without copying even the return values
  16. Debugging (pretty printing)
  17. Change values in a reference
  18. Exercise: double numbers
  19. Exercise: Add many arrays
  20. Exercise: Function to compare two hashes
  21. Solution: Double numbers
  22. Solution: Add many arrays
  23. Solution: Add many arrays
  24. Solution: Function to compare two hashes
  25. Anonymous Arrays
  26. Array of Arrays
  27. Array of Arrays (AoA)
  28. Many dimensional arrays
  29. Anonymous hashes
  30. Hash of Hashes (HoH)
  31. More complex data structures
  32. Memory leak with cross references
  33. Memory leak with cross references - weaken
  34. Read CSV file
  35. Exercise: read in an ini file
  36. Exercise: improve the csv reader
  37. Solution: Read ini file
  38. Solution: improve the csv reader
  39. autovivification
  40. Scalar references in Getopt::Long
  41. Anonymous subroutines
  42. Uses of Subroutine references
  43. Exercise: DNA Sequence Analyzer
  44. Solution: DNA Sequence Analyzer
  45. Exercise: DNA Sequence Analyzer with callback
  46. Solution: DNA Sequence Analyzer with callback
  47. Exercise: DNA Sequence Analyzer with shortcut
  48. Solution: DNA Sequence Analyzer with shortcut
  49. Dispatch Table
  50. Dispatch Table using symbolic references
  51. The ref() function
  52. Copy a data structure
  53. Deep copy
  54. Deep copy - Storable dclone
  55. Serialization
  56. Data::Dumper
  57. Data::Dumper both dump and restore
  58. Storable
  59. Storable in memory freezing
  60. YAML
  61. YAML in one file
  62. JSON in one file
  63. Main uses of references
  64. Exercise: save ini and csv as YAML
  65. Exercise: Create a cache for NetSlow
  66. Exercise: create a function that generates numbers multipliers
  67. Solution: save ini and csv as YAML
  68. Solution: Create a cache for NetSlow
  69. Solution: NetSlow cache with timeout
  70. Resources