in reply to Re: How does 'goto LABEL' search for its label?
in thread How does 'goto LABEL' search for its label?
I think in this context it's supposed to mean "block of a loop".
goto says that literally
IMHO this discussion helps...
The whole time I was writing Re: How does 'goto LABEL' search for its label? I was thinking "dynamic scoping" but didn't have an example, and here it is
$ perl -wE " sub F { G(); LF: say 6; } sub G { say 2; goto LF; } G; " 2 Can't find label LF at -e line 1. $ perl -wE " sub F { return G(); LF: say 6; } sub G { say 2; goto LF; +} F" 2 6
yow :)
|
|---|