in reply to Catching writes to a bless'ed hash
If you are sure that everyone uses your setter-methods to change the values in your object then your fine with something like this
If not, you might store a hash-number of all keys and values into your object. If you don't need to check too often, this would cost less time than tie. Be careful with the hash function. For example if you need to differentiate between undef and empty string you should add a constant for defined values.
|
|---|