summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorRicardo Signes <rjbs@cpan.org>2013-06-18 19:12:03 -0400
committerRicardo Signes <rjbs@cpan.org>2013-06-18 19:12:03 -0400
commit5a5b79a33d5fadadd08ac191be11d142d1b9b069 (patch)
tree915220016eac3a44cbd33d32688a2b17f07b7878 /pod
parent3e8a637058231ac4d3a9cedc549bfb1b8ee36c68 (diff)
downloadperl-5a5b79a33d5fadadd08ac191be11d142d1b9b069.tar.gz
replace weird C<goto-TYPE> with C<goto TYPE>
the hyphenated form dates to a0d0e21, the Perl 5.000 commit nothing else looks this way, and the difference seems to win us nothing
Diffstat (limited to 'pod')
-rw-r--r--pod/perlfunc.pod12
1 files changed, 6 insertions, 6 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index 9428a4d67a..756ea77552 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -2919,7 +2919,7 @@ X<goto> X<jump> X<jmp>
=for Pod::Functions create spaghetti code
-The C<goto-LABEL> form finds the statement labeled with LABEL and
+The C<goto LABEL> form finds the statement labeled with LABEL and
resumes execution there. It can't be used to get out of a block or
subroutine given to C<sort>. It can be used to go almost anywhere
else within the dynamic scope, including out of subroutines, but it's
@@ -2929,9 +2929,9 @@ The author of Perl has never felt the need to use this form of C<goto>
does not offer named loops combined with loop control. Perl does, and
this replaces most structured uses of C<goto> in other languages.)
-The C<goto-EXPR> form expects to evaluate C<EXPR> to a code reference or
+The C<goto EXPR> form expects to evaluate C<EXPR> to a code reference or
a label name. If it evaluates to a code reference, it will be handled
-like C<goto-&NAME>, below. This is especially useful for implementing
+like C<goto &NAME>, below. This is especially useful for implementing
tail recursion via C<goto __SUB__>.
If the expression evaluates to a label name, its scope will be resolved
@@ -2940,19 +2940,19 @@ necessarily recommended if you're optimizing for maintainability:
goto ("FOO", "BAR", "GLARCH")[$i];
-As shown in this example, C<goto-EXPR> is exempt from the "looks like a
+As shown in this example, C<goto EXPR> is exempt from the "looks like a
function" rule. A pair of parentheses following it does not (necessarily)
delimit its argument. C<goto("NE")."XT"> is equivalent to C<goto NEXT>.
Also, unlike most named operators, this has the same precedence as
assignment.
-Use of C<goto-LABEL> or C<goto-EXPR> to jump into a construct is
+Use of C<goto LABEL> or C<goto EXPR> to jump into a construct is
deprecated and will issue a warning. Even then, it may not be used to
go into any construct that requires initialization, such as a
subroutine or a C<foreach> loop. It also can't be used to go into a
construct that is optimized away.
-The C<goto-&NAME> form is quite different from the other forms of
+The C<goto &NAME> form is quite different from the other forms of
C<goto>. In fact, it isn't a goto in the normal sense at all, and
doesn't have the stigma associated with other gotos. Instead, it
exits the current subroutine (losing any changes set by local()) and