update Tue May 18 00:37:00 PDT 2010
[pkgsrc.git] / devel / p5-Tie-ToObject / DESCR
1 While "tie" in perldoc allows tying to an arbitrary object, the
2 class in question must support this in it's implementation of
3 TIEHASH, TIEARRAY or whatever.
4
5 This class provides a very tie constructor that simply returns the
6 object it was given as it's first argument.
7
8 This way side effects of calling $object->TIEHASH are avoided.
9
10 This is used in Data::Visitor in order to tie a variable to an
11 already existing object. This is also useful for cloning, when you
12 want to clone the internal state object instead of going through
13 the tie interface for that variable.