What does the sub return?
The foreach in your examples is a red herring. A function call is an expression. And function calls return the value of the last expression evaluated. foreach is not an expression, but in the course of its execution several of those may be evaluated.
My statement stands. (Pun intended.)
Makeshifts last the longest.
In reply to Re^6: Unhappy returns
by Aristotle
in thread Unhappy returns
by tlm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |