The construct is interpreted as a label, as the following code shows:
sub fn { return: 3; print 'code after return?' }; fn()
As the return value of a function is the last expression evaluated, the value of your constant block, 3, is returned.
In reply to Re: 'return:' instead of 'return'
by Corion
in thread 'return:' instead of 'return'
by Boldra
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |