Thank you very much to all of you especially for trying to update the script.
the fix is to inherit from Class::PseudoHash
seems to work perfect.
I would not have expected that my problems were based in the module and I did not yet know about pseudo-hashes, so also thanks to runrig.
I am happy with the updates and I have no more errors, works like a charm!