in reply to Re^2: Tieing anonymous hashes
in thread Tieing anonymous hashes
You are correct, sir.
I was demonstrating that the return value of tie is an object reference that could be treated as such. My choice of DESTROY in the example was to use a method I knew should exist regardless of the class to which the variable is tied, that is common in any old ordinary class, and that people familiar with OO would visually recognize as a method call. But you're absolutely right about letting Perl call DESTROY().
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Tieing anonymous hashes
by diotalevi (Canon) on Jun 28, 2005 at 22:52 UTC |