in reply to Re^3: Writing a REAL destructor
in thread Writing a REAL destructor
Image some code like this:
{ my $obj = Harf -> new; my $obj2 = $obj; undef $obj; # Does *not* call DESTROY! .... } # Only here DESTROY is called, as also $obj2 goes out of scope.
Abigail
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Writing a REAL destructor
by Aristotle (Chancellor) on Jun 05, 2002 at 16:35 UTC | |
by Abigail-II (Bishop) on Jun 05, 2002 at 17:28 UTC | |
by Aristotle (Chancellor) on Jun 05, 2002 at 18:11 UTC |