Hope that helps,use strict; use warnings; my($a) = <STDIN>; chomp($a); if ($a !~ /^\d+$/) { print "Sorry - you didn't give me a number.\n"; exit 1; } else { print "Yay! That's a number!\n"; }
In reply to Re: Minor querry!!
by Shendal
in thread Minor querry!!
by vnpandey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |