I guess you meant bless a reference on tied variable into the same tied class.
Do not do it unless you are going to post you code into Obfuscated Code section of PerlMonks. Tied variable already has underlaying object. If you bless reference on tied variable you get another object. For these two objects you will have some methods. If these two objects are going to share same package you will have to put methods for two different classes of objects into one package. It is not something I would recomend to do if you want to write clean, easy to understand code.
On the other hand blessing a reference on tied variable into separate package maybe ok. One good example is Tie::SecureHash. References on variables tied into this package are supposed to be blessed into other packages.
--
Ilya Martynov
(http://martynov.org/)
In reply to Re: Blessing a Tied something?
by IlyaM
in thread Blessing a Tied something?
by jcupp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |