How often do you actually end up wanting to add methods to something that started as a plain old datastructure? I think you invent a convoluted solution to a convoluted example.
BTW, you forgot one solution. You do not have to bless the reference to a tied array. There already is a blessed reference under the covers. Get it by tied(@array) and call whatever you need on that.
Jenda
Enoch was right!
Enjoy the last years of Rome.
In reply to Re: Benefits of everything is an object? Or new sigils?
by Jenda
in thread Benefits of everything is an object? Or new sigils?
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |