in reply to Re^2: Loop and Add more cookies
in thread Loop and Add more cookies
$ZAHL =++$ZAHL
increases its value. I'm not sure why your teacher showed you this construct, as there are many easier ways how to add one to a variable:
$x++; ++$x; $x += 1; $x = $x + 1;
Therefore, the input is compared to
"KEKSE" x 2 . "E " x 2
i.e.
KEKSEKEKSEE E ~~~~~ ~~ once E + space ~~~~ twice ~~ E + space
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Loop and Add more cookies
by Accelerator (Initiate) on Oct 12, 2015 at 20:57 UTC |