Of course, I think the other examples, especially plaid's suggestion are less obfuscated.while (!$stop) { $a = <STDIN>; chomp($a); $a =~ tr/0-9.//cd; if (length($a) < 1) { print "Please enter a number\n"; $stop = 1; } }
In reply to RE: Re: Minor query
by Shendal
in thread Minor querry!!
by vnpandey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |