The same rules as returning from a sub apply. If there's a return, the value there gets returned per the normal rules. If there's no return, the value of the last evaluated expression gets returned. The most correct way to end a module is with an explicit return.
In reply to Re^6: return from external subroutine
by chromatic
in thread return from external subroutine
by kathys39
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |