1PPI::Statement::Break(3U)ser Contributed Perl DocumentatiPoPnI::Statement::Break(3)
2
3
4

NAME

6       PPI::Statement::Break - Statements which break out of normal statement
7       flow
8

SYNOPSIS

10         last;
11         goto FOO;
12         next if condition();
13         return $foo;
14         redo;
15

INHERITANCE

17         PPI::Statement::Break
18         isa PPI::Statement
19             isa PPI::Node
20                 isa PPI::Element
21

DESCRIPTION

23       "PPI::Statement::Break" is intended to represent statements that break
24       out of the normal statement flow control. This covers the basic types
25       'redo', 'goto', 'next', 'last' and 'return'.
26

METHODS

28       "PPI::Statement::Break" has no additional methods beyond the default
29       ones provided by PPI::Statement, PPI::Node and PPI::Element.
30
31       However, it is expected to gain methods for identifying the line to
32       break to, or the structure to break out of.
33

TO DO

35       - Add the methods to identify the break target
36
37       - Add some proper unit testing
38

SUPPORT

40       See the support section in the main module.
41

AUTHOR

43       Adam Kennedy <adamk@cpan.org>
44
46       Copyright 2001 - 2011 Adam Kennedy.
47
48       This program is free software; you can redistribute it and/or modify it
49       under the same terms as Perl itself.
50
51       The full text of the license can be found in the LICENSE file included
52       with this module.
53
54
55
56perl v5.34.0                      2022-02-02          PPI::Statement::Break(3)
Impressum