how can I determine what the data type of the value element is?
perl has a ref function which can tell what type of object. https://perldoc.perl.org/functions/ref.html
-- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus