This is very good! Thanks a lot for your reply.
I just realized that each call to setname() reset the $name value causing it to keep only the last one.
I didnt know about refaddr by the way.
So the code you wrote ties values to a hash with the refaddr as the key. This is very nice but it is not what i would call object orientation really.
I have been writing in java for the past few years so this looks to me more like hack than an OO solution.
Is this the best way to do what i originally intended to?
(i find it a bit hard to fully understand perlboot/toot)
Again thanks very much