in reply to Re: Tieing anonymous hashes
in thread Tieing anonymous hashes
In other words, this does work:
my $obj = tie( %hash, 'Class' ); $obj->DESTROY;
It works except that you'd never, ever write code to call ->DESTROY because that's only ever called by perl when it is actually destroying something. ->DESTROY doesn't provoke a cleanup - its only something that happens during cleanup.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Tieing anonymous hashes
by davido (Cardinal) on Jun 28, 2005 at 22:39 UTC | |
by diotalevi (Canon) on Jun 28, 2005 at 22:52 UTC |