Perl usually converts numeric to string values and vice versa transparently. Yet there must be something which allows e.g. Data::Dumper to discriminate between
Data::Dumper
I don't think there is perl function to find type of value. One can find type of DS(scalar,array,hash). Can use regex to find type of value.