in reply to Re: Minor query
in thread Minor querry!!
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; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Re: Minor query
by mdillon (Priest) on Jun 24, 2000 at 02:04 UTC | |
|
RE: RE: Re: Minor query
by turnstep (Parson) on Jun 25, 2000 at 00:01 UTC | |
by merlyn (Sage) on Jun 25, 2000 at 16:58 UTC | |
by turnstep (Parson) on Jun 25, 2000 at 19:16 UTC | |
|
"Appropriate" use of goto (was RE: Re: Minor query)
by spudzeppelin (Pilgrim) on Jun 24, 2000 at 01:38 UTC | |
by Aighearach (Initiate) on Jun 24, 2000 at 15:50 UTC | |
by Adam (Vicar) on Jun 24, 2000 at 01:54 UTC |