in reply to setting values inside subroutine

The sub get_handles gets the required values. You could modify it. It appears to be a method of object $t. If so, a better approach is to override that method in a new subclass. Only $t objects created in the new subclass would use the new method.
Bill