Since $self->{data} is just an attribute, you can set it to undef after the untie in the child method, and adding an if (defined $self->{data}) {...} around the untie in the parent's DESTROY.
Hope this helps, -gjb-
In reply to Re^5: Inheritance and objects tied to a database
by gjb
in thread Inheritance and objects tied to a database
by relax99
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |