in reply to Minor querry!!
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"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Minor querry!!
by mrmick (Curate) on Jun 27, 2000 at 21:06 UTC |