Perl References


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