in reply to Re: (tye)Re: How can I call other objects from my object during DESTROY
in thread How can I call other objects from my object during DESTROY
I think what isn't clear is what you are doing with the blessed hashref to your object itself. To wit, if your object (the one your original post referred to) were an Xyz, then into what kind of variable are you putting the return from Xyz::new()?
my $xyz = new Xyz();
Or,
$XYZ = new xyz(); # where $XYZ is a package global
If you are using the latter (for example in a test harness program), you might want to test the former to see if it exhibits the same behavior you originally asked about.
|
|---|