in reply to Re^9: printing unitialized value of the 'do BLOCK'
in thread printing unitialized value of the 'do BLOCK'
But the return value is only defined when the last statement is an expression. The last statement is an unless statement, so the return value is undefined.
We were discussing what value is returned even though it's undefined. But that's always dangerous. As you've pointed out, it doesn't always work.
Update: Fixed typo (until=>unless)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^11: printing unitialized value of the 'do BLOCK'
by soonix (Chancellor) on Dec 23, 2019 at 08:11 UTC | |
by LanX (Saint) on Dec 25, 2019 at 18:38 UTC | |
by ikegami (Patriarch) on Dec 26, 2019 at 09:07 UTC | |
by rsFalse (Chaplain) on Dec 26, 2019 at 12:14 UTC | |
by LanX (Saint) on Dec 26, 2019 at 14:48 UTC | |
| |
by ikegami (Patriarch) on Dec 27, 2019 at 05:55 UTC | |
|
Re^11: printing unitialized value of the 'do BLOCK'
by rsFalse (Chaplain) on Dec 22, 2019 at 23:29 UTC | |
by ikegami (Patriarch) on Dec 24, 2019 at 14:55 UTC |