in reply to OOPs Beginner needs help w/ anonymous array / hash

This has nothing to do with OOP. It is all about data-structures in Perl (Chapter 2 "Implementing Complex Data Structures." of "Advanced Perl Programming")

Do you understand how the datastructure is set-up? If not, I suggest that you run the program and use Data::Dumper to dump the structure. It will clearly show how it works.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

  • Comment on Re: OOPs Beginner needs help w/ anonymous array / hash