Cybersecurity
Dec 1, 2020
1 min
Check Variable Type is Integer in Perl
N
NewPush TeamAuthor
If you need to make sure that data incoming from a data source is integer, you can use:
if ( =~ m/^[d]*$/ ) { print "integern"; }
More info is on SitePoint.