in reply to Check for Positive Integer entry only
This should do it:
if ( $DataEntry =~ /^\d+$/ ) { print "good entry"; } else { print "bad entry"; }
In Section
Seekers of Perl Wisdom