in reply to do-while loop question
Now 8 lines of somewhat torturous logic have been reduced to 3 simple statements.print "Are you ready to proceed? [y/N]: "; chomp(my $answer = <STDIN>); die "Ciao!\n" if ($answer !~ /^y/i);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re:x2 do-while loop question
by grinder (Bishop) on Mar 13, 2003 at 11:59 UTC | |
by Coruscate (Sexton) on Mar 13, 2003 at 22:11 UTC |