in reply to Re: do-while loop question
in thread do-while loop question
Quite true. But then again, if you're only looking at the beginning of the string, chomping becomes superfluous, and you don't even need to spring a variable into existence:
print "Are you ready to proceed? [y/N]: "; <STDIN> !~ /^y/i and die "Ciao!\n";
I changed the structure of the second line because it seems to read better to me, don't shoot me, it's a question of style. So now we have one line down, two to go :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: do-while loop question
by Coruscate (Sexton) on Mar 13, 2003 at 22:11 UTC |