in reply to Loop and Add more cookies

It is kind of difficult to understand exactly what you want here. Could you please specify what your expected output should look like?

Also, please put use warnings; and use strict; at the top of your script and attempt to fix your errors (always, always, always use these two lines. Even the top-most experienced Monks here always use them). If you don't understand the error output, a quick search here or on Google will explain things. If you're still confused as to what the error output means, by all means, reply back and we'll explain it fully to you.

-stevieb

Replies are listed 'Best First'.
Re^2: Loop and Add more cookies
by Accelerator (Initiate) on Oct 12, 2015 at 15:33 UTC

    We have to find an answer to end the loop, (basically we run the script and need to type in for example "2 Cookies" to end the loop if we fail the script loops and adds more, now i need to type in i.e. 3 Cookies, but i guess thats unnecessary to mention)