in reply to Re^2: Trying to understand Perl Objects
in thread Trying to understand Perl Objects

I also wonder how you do to associate a object to another object? Should the object reference be added to the anonymous hash?

Not exactly sure what you mean by 'associate', but an object reference can be stored like any other reference (it's just a scalar), e.g. as values in a hash... from where you can then access the object whenever needed.

  • Comment on Re^3: Trying to understand Perl Objects