in reply to Re^6: resetting a foreach loop!
in thread resetting a foreach loop!
... if statements ... aren't expressions ...
if statements aren't expressions, but an
if (CONDITION) { ... }
statement must evaluate the CONDITION expression, and if that's the last expression evaluated in a subroutine (because it evaluates false), I thought that's what must be returned. At least, whenever I've encountered this situation, that's the way it's worked. (I don't like implicit returns myself and never use them, but just sayin' ...) I'd be interested to learn more about this.
Give a man a fish: <%-{-{-{-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: resetting a foreach loop!
by pryrt (Abbot) on Nov 18, 2017 at 02:11 UTC | |
by AnomalousMonk (Archbishop) on Nov 18, 2017 at 20:26 UTC |