https://www.manu.co.in/how-do-i-tell-if-a-variable-has-a-numeric-value-in-perl/
How do I tell if a variable has a numeric value in Perl?