in reply to Re^2: Aliasing hash-element and scalar? (Not Solved Yet)
in thread Aliasing hash-element and scalar?

Thanks.

Background: I was thinking to emulate the Python OO system, and in that language a class attribute can be accessed thru the same mechanism like an instance attribute.

Hence assigning self.class_attr will change the value for all objects, assigning to self.obj_attr only to that specific object.

Data::Alias seems like a good idea, unless Python has optional magic __hooks__ to intercept a get/set on class_attr.

In that case I should rather use Tie::Scalar.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice