b91bfaf630
While "tie" in Perl allows tying to an arbitrary object, the class in question must support this in it's implementation of TIEHASH, TIEARRAY or whatever. Tie::ToObject provides a very tie constructor that simply returns the object it was given as it's first argument. That way the side effects of calling $object->TIEHASH are avoided.
8 lines
336 B
Plaintext
8 lines
336 B
Plaintext
While "tie" in Perl allows tying to an arbitrary object, the class in
|
|
question must support this in it's implementation of TIEHASH, TIEARRAY
|
|
or whatever.
|
|
|
|
Tie::ToObject provides a very tie constructor that simply returns the
|
|
object it was given as it's first argument.
|
|
That way the side effects of calling $object->TIEHASH are avoided.
|