How to tell apart numeric scalars and string scalars in Perl?

前端 未结 9 1440
一生所求
一生所求 2020-12-16 12:31

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

9条回答
  •  再見小時候
    2020-12-16 12:45

    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.

提交回复
热议问题