in reply to Re: Loop and Add more cookies
in thread Loop and Add more cookies
thanks mate, i made a mistake there the code is
$number = 1; $cookies = ""; while ( $cookies ne "COOKIES"x$number."S " x $number, ) { $number =++$number; print "Cookie monster: I want"." COOKIES"x$number."S" x $number, "! +\n"; chomp($cookies= <STDIN>); } print "Mmmm. $number COOKIES. :-)\n"; exit;
but the task was to find an answer to end the script in the command prompt not to write a script, but i appreciate your help:)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Loop and Add more cookies
by choroba (Cardinal) on Oct 12, 2015 at 15:48 UTC | |
by Accelerator (Initiate) on Oct 12, 2015 at 17:51 UTC |