in reply to how to code a class and use it with hash of hash as data member?

This code is a real mess -- I don't even think it will compile due to syntax errors and until you understand those, figuring out the object part will be a real challenge.

I suggest you spend some time going back to some basic tutorials on OO Perl. Perhaps Tutorial: Introduction to Object-Oriented Programming or Perl Object Oriented Meta-Tutorial would be a good starting point to give you some examples to work from.

Best of luck

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

  • Comment on Re: how to code a class and use it with hash of hash as data member?