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.
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.