in reply to RE: RE: Re: Minor query
in thread Minor querry!!
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: RE: RE: Re: Minor query
by turnstep (Parson) on Jun 25, 2000 at 19:16 UTC |