| 1 | package PPI::Structure::When; | ||
| 2 | |||
| 3 | =pod | ||
| 4 | |||
| 5 | =head1 NAME | ||
| 6 | |||
| 7 | PPI::Structure::When - Circular braces for a when statement | ||
| 8 | |||
| 9 | =head1 SYNOPSIS | ||
| 10 | |||
| 11 | when ( something ) { | ||
| 12 | ... | ||
| 13 | } | ||
| 14 | |||
| 15 | =head1 INHERITANCE | ||
| 16 | |||
| 17 | PPI::Structure::When | ||
| 18 | isa PPI::Structure | ||
| 19 | isa PPI::Node | ||
| 20 | isa PPI::Element | ||
| 21 | |||
| 22 | =head1 DESCRIPTION | ||
| 23 | |||
| 24 | C<PPI::Structure::When> is the class used for circular braces that | ||
| 25 | contain the thing to be matched in a when statement. | ||
| 26 | |||
| 27 | =head1 METHODS | ||
| 28 | |||
| 29 | C<PPI::Structure::When> has no methods beyond those provided by the | ||
| 30 | standard L<PPI::Structure>, L<PPI::Node> and L<PPI::Element> methods. | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | 62 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 35 | 62 | ▶ | use PPI::Structure (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 36 | |||
| 37 | 62 | ▶ | use vars qw{$VERSION @ISA}; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 38 | BEGIN { | ||
| 39 | 62 | ▶ | $VERSION = '1.236'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 40 | 62 | @ISA = 'PPI::Structure'; | |
| 41 | } | ||
| 42 | |||
| 43 | 62 | 1; | |
| 44 | |||
| 45 | =pod | ||
| 46 | |||
| 47 | =head1 SUPPORT | ||
| 48 | |||
| 49 | See the L<support section|PPI/SUPPORT> in the main module. | ||
| 50 | |||
| 51 | =head1 AUTHOR | ||
| 52 | |||
| 53 | Adam Kennedy E<lt>adamk@cpan.orgE<gt> | ||
| 54 | |||
| 55 | =head1 COPYRIGHT | ||
| 56 | |||
| 57 | Copyright 2001 - 2011 Adam Kennedy. | ||
| 58 | |||
| 59 | This program is free software; you can redistribute | ||
| 60 | it and/or modify it under the same terms as Perl itself. | ||
| 61 | |||
| 62 | The full text of the license can be found in the | ||
| 63 | LICENSE file included with this module. | ||
| 64 | |||
| 65 | =cut | ||