in reply to Re^2: why not listed foreach and if?
in thread why not listed foreach and if?
perl feed subs from right to left,
I don't know what that means? Both sub definitions and sub calls read from left to right.
Perl do checks if tail-loaded,
No, that's not the case for either the do function or the do block. Both start with do. They read from left to right.
Are you talking about do ... if ...;, do ... for ...; and , do ... while ...;? Those are just statement modifiers on a expression. No different than next if ...;, etc.
And again, you keep giving examples that defy your point. do ... while ...; is rarely used, I've never seen the others used, and I actively avoid them all.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: why not listed foreach and if?
by vincentaxhe (Scribe) on Jun 19, 2024 at 08:26 UTC | |
by choroba (Cardinal) on Jun 19, 2024 at 08:35 UTC | |
by ikegami (Patriarch) on Jun 19, 2024 at 18:55 UTC | |
by vincentaxhe (Scribe) on Jun 19, 2024 at 15:44 UTC | |
by ikegami (Patriarch) on Jun 19, 2024 at 15:40 UTC |