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.
In reply to Re^2: Tieing anonymous hashes
by diotalevi
in thread Tieing anonymous hashes
by shemp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |