1Syntax::Feature::Loop(3U)ser Contributed Perl DocumentatiSoynntax::Feature::Loop(3)
2
3
4
6 Syntax::Feature::Loop - Provides the "loop BLOCK" syntax for
7 unconditional loops.
8
10 Version 1.8.0
11
13 use syntax qw( loop );
14
15 loop {
16 ...
17 last if ...;
18 ...
19 }
20
22 Syntax::Feature::Loop is a lexically-scoped pragma that provides the
23 "loop BLOCK" syntax for unconditional loops.
24
25 This module serves as a demonstration of the "cv_set_call_parser" and
26 "cv_set_call_checker" Perl API calls.
27
28 "use syntax qw( loop );"
29 "use Syntax::Feature::Loop;"
30 Enables the use of "loop BLOCK" until the end of the current lexical
31 scope.
32
33 "no syntax qw( loop );"
34 "no Syntax::Feature::Loop;"
35 Restores the standard behaviour of "loop" (a sub call) until the end of
36 the current lexical scope.
37
38 "loop BLOCK"
39 Repeatedly executes the BLOCK until it is exited using "last",
40 "return", "die", etc.
41
42 In other words, it behaves just like all of the following:
43
44 · "for (;;) BLOCK"
45
46 · "while (1) BLOCK"
47
48 · "while () BLOCK"
49
50 Like other flow control statements, there is no need to terminate the
51 statement with a semi-colon (";").
52
54 · syntax
55
56 · Devel::CallParser
57
58 · Devel::CallChecker
59
60 · Lexical::Sub
61
62 · perlapi
63
65 Please report any bugs or feature requests to "bug-Syntax-Feature-Loop
66 at rt.cpan.org", or through the web interface at
67 <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Syntax-Feature-Loop>.
68 I will be notified, and then you'll automatically be notified of
69 progress on your bug as I make changes.
70
72 You can find documentation for this module with the perldoc command.
73
74 perldoc Syntax::Feature::Loop
75
76 You can also look for information at:
77
78 · Search CPAN
79
80 <http://search.cpan.org/dist/Syntax-Feature-Loop>
81
82 · RT: CPAN's request tracker
83
84 <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Syntax-Feature-Loop>
85
86 · AnnoCPAN: Annotated CPAN documentation
87
88 <http://annocpan.org/dist/Syntax-Feature-Loop>
89
90 · CPAN Ratings
91
92 <http://cpanratings.perl.org/d/Syntax-Feature-Loop>
93
95 Eric Brine, "<ikegami@adaelis.com>"
96
98 No rights reserved.
99
100 The author has dedicated the work to the Commons by waiving all of his
101 or her rights to the work worldwide under copyright law and all related
102 or neighboring legal rights he or she had in the work, to the extent
103 allowable by law.
104
105 Works under CC0 do not require attribution. When citing the work, you
106 should not imply endorsement by the author.
107
108
109
110perl v5.28.0 2018-07-15 Syntax::Feature::Loop(3)