-
Notifications
You must be signed in to change notification settings - Fork 597
Description
As part of my research on Fatalization of currently deprecated goto
construct I have been
re-reading our current documentation of goto
in blead and have been trying
to locate in our test suite examples of each claim made in that documentation.
What we find -- or fail to find -- there will have an impact on the
documentation updates provided as part of a pull request like the current
#23782. I've posted the preliminary results
of that documentation review
here.
This is the third in a series of GH issues addressing the items which I
believe are lacking in that documentation.
perldoc -f goto
states that goto
:
If the expression [in "goto EXPRESSION"] evaluates to a label name, its scope will be
resolved dynamically. This allows for computed "goto"s per
FORTRAN, but isn't necessarily recommended if you're optimizing
for maintainability:
goto ("FOO", "BAR", "GLARCH")[$i];
This code example also appears in pod/perlsyn.pod
. I can't find an actual
instance of such code anywhere in the Perl 5 test suite. Provide some
examples in tests.