PPI/Structure/Subscript.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« PPI/Structure/Given.pm ↑ Summary PPI/Structure/Unknown.pm »
1 package PPI::Structure::Subscript;
2  
3 =pod
4  
5 =head1 NAME
6  
7 PPI::Structure::Subscript - Braces that represent an array or hash subscript
8  
9 =head1 SYNOPSIS
10  
11 # The end braces for all of the following are subscripts
12 $foo->[...]
13 $foo[...]
14 $foo{...}[...]
15 $foo->{...}
16 $foo{...}
17 $foo[]{...}
18  
19 =head1 INHERITANCE
20  
21 PPI::Structure::Subscript
22 isa PPI::Structure
23 isa PPI::Node
24 isa PPI::Element
25  
26 =head1 DESCRIPTION
27  
28 C<PPI::Structure::Subscript> is the class used for square and curly
29 braces that specify one element of an array or hash (or a slice/subset
30 of an array or hash)
31  
32 =head1 METHODS
33  
34 C<PPI::Structure::Subscript> has no methods beyond those provided by the
35 standard L<PPI::Structure>, L<PPI::Node> and L<PPI::Element> methods.
36  
37 =cut
38  
39 62 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
40 62 ▶use PPI::Structure ();
Subroutine BEGIN: called CC=1 SCAR=0.0
41  
42 62 ▶use vars qw{$VERSION @ISA};
Subroutine BEGIN: called CC=1 SCAR=0.0
43 BEGIN {
44 62 ▶ $VERSION = '1.236';
Subroutine BEGIN: called CC=1 SCAR=0.0
45 62 @ISA = 'PPI::Structure';
46 }
47  
48 62 1;
49  
50 =pod
51  
52 =head1 SUPPORT
53  
54 See the L<support section|PPI/SUPPORT> in the main module.
55  
56 =head1 AUTHOR
57  
58 Adam Kennedy E<lt>adamk@cpan.orgE<gt>
59  
60 =head1 COPYRIGHT
61  
62 Copyright 2001 - 2011 Adam Kennedy.
63  
64 This program is free software; you can redistribute
65 it and/or modify it under the same terms as Perl itself.
66  
67 The full text of the license can be found in the
68 LICENSE file included with this module.
69  
70 =cut
« PPI/Structure/Given.pm ↑ Summary PPI/Structure/Unknown.pm »