But my personal favorite would be simply:Of course, you'll not have the number you read, unless you look at $& (expensive) or put \d+ inside parens, and then look at $1.print "Number?\n" while <STDIN> !~ /^\d+$/;
-- Randal L. Schwartz, Perl hacker
In reply to RE: RE: RE: Re: Minor query
by merlyn
in thread Minor querry!!
by vnpandey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |