BTW a recommendation. It is tempting to think in terms of "This class is X. My object is in the class. Anything I tie is tied to X." This is a trap. You will quickly find great confusion arising from the fact that sometimes you are getting a tied thing, and sometimes you are getting the object behind the tie. Therefore I recommend that you have two classes. One for the object, and a different one to tie it to.sub test2 { my $self = shift; print tied(@$self)->{ test }, "\n"; # LINE 22 }
In reply to Re (tilly) 1: Combined tied-array / object problem
by tilly
in thread Combined tied-array / object problem
by Masem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |