in reply to Check for Positive Integer entry only
This should do it:
if ( $DataEntry =~ /^\d+$/ ) { print "good entry"; } else { print "bad entry"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Check for Positive Integer entry only
by Nkuvu (Priest) on May 09, 2007 at 17:54 UTC | |
Re^2: Check for Positive Integer entry only
by ikegami (Patriarch) on May 12, 2007 at 16:17 UTC |
In Section
Seekers of Perl Wisdom