How can I return from a proc to a higher context?
For example: If proc X called another proc Y which called a third proc Z – is there a way to return from Z directly back to X ?
How can I return from a proc to a higher context? For example: If
Share
From 8.5 onwards, yes. The
returncommand has a-leveloption which is used to do just that:Thus, for example:
produces this output:
Note that doing this reduces the reusability of
Z, but that’s your business.