| 1 | package PPI::Token::Label; | ||
| 2 | |||
| 3 | =pod | ||
| 4 | |||
| 5 | =head1 NAME | ||
| 6 | |||
| 7 | PPI::Token::Label - Token class for a statement label | ||
| 8 | |||
| 9 | =head1 INHERITANCE | ||
| 10 | |||
| 11 | PPI::Token::Label | ||
| 12 | isa PPI::Token | ||
| 13 | isa PPI::Element | ||
| 14 | |||
| 15 | =head1 DESCRIPTION | ||
| 16 | |||
| 17 | A label is an identifier attached to a line or statements, to allow for | ||
| 18 | various types of flow control. For example, a loop might have a label | ||
| 19 | attached so that a C<last> or C<next> flow control statement can be used | ||
| 20 | from multiple levels below to reference the loop directly. | ||
| 21 | |||
| 22 | =head1 METHODS | ||
| 23 | |||
| 24 | There are no additional methods beyond those provided by the parent | ||
| 25 | L<PPI::Token> and L<PPI::Element> classes. | ||
| 26 | |||
| 27 | =cut | ||
| 28 | |||
| 29 | 63 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 30 | 63 | ▶ | use PPI::Token (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 31 | |||
| 32 | 63 | our $VERSION = '1.260'; # VERSION | |
| 33 | |||
| 34 | 63 | our @ISA = "PPI::Token"; | |
| 35 | |||
| 36 | 63 | 1; | |
| 37 | |||
| 38 | =pod | ||
| 39 | |||
| 40 | =head1 SUPPORT | ||
| 41 | |||
| 42 | See the L<support section|PPI/SUPPORT> in the main module. | ||
| 43 | |||
| 44 | =head1 AUTHOR | ||
| 45 | |||
| 46 | Adam Kennedy E<lt>adamk@cpan.orgE<gt> | ||
| 47 | |||
| 48 | =head1 COPYRIGHT | ||
| 49 | |||
| 50 | Copyright 2001 - 2011 Adam Kennedy. | ||
| 51 | |||
| 52 | This program is free software; you can redistribute | ||
| 53 | it and/or modify it under the same terms as Perl itself. | ||
| 54 | |||
| 55 | The full text of the license can be found in the | ||
| 56 | LICENSE file included with this module. | ||
| 57 | |||
| 58 | =cut | ||