PPI/Token/QuoteLike.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 11 / 11 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« PPI/Token/Quote/Literal.pm ↑ Summary PPI/Token/QuoteLike/Backtick.pm »
1 package PPI::Token::QuoteLike;
2  
3 =pod
4  
5 =head1 NAME
6  
7 PPI::Token::QuoteLike - Quote-like operator abstract base class
8  
9 =head1 INHERITANCE
10  
11 PPI::Token::QuoteLike
12 isa PPI::Token
13 isa PPI::Element
14  
15 =head1 DESCRIPTION
16  
17 The C<PPI::Token::QuoteLike> class is never instantiated, and simply
18 provides a common abstract base class for the five quote-like operator
19 classes. In PPI, a "quote-like" is the set of quote-like things that
20 exclude the string quotes and regular expressions.
21  
22 The subclasses of C<PPI::Token::QuoteLike> are:
23  
24 =over 2
25  
26 =item qw{} - L<PPI::Token::QuoteLike::Words>
27  
28 =item `` - L<PPI::Token::QuoteLike::Backtick>
29  
30 =item qx{} - L<PPI::Token::QuoteLike::Command>
31  
32 =item qr// - L<PPI::Token::QuoteLike::Regexp>
33  
34 =item <FOO> - L<PPI::Token::QuoteLike::Readline>
35  
36 =back
37  
38 The names are hopefully obvious enough not to have to explain what
39 each class is. See their pages for more details.
40  
41 You may note that the backtick and command quote-like are treated
42 separately, even though they do the same thing. This is intentional,
43 as the inherit from and are processed by two different parts of the
44 PPI's quote engine.
45  
46 =cut
47  
48 63 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
49 63 ▶use PPI::Token ();
Subroutine BEGIN: called CC=1 SCAR=0.0
50  
51 63 our $VERSION = '1.260'; # VERSION
52  
53 63 our @ISA = "PPI::Token";
54  
55 63 1;
56  
57 =pod
58  
59 =head1 SUPPORT
60  
61 See the L<support section|PPI/SUPPORT> in the main module.
62  
63 =head1 AUTHOR
64  
65 Adam Kennedy E<lt>adamk@cpan.orgE<gt>
66  
67 =head1 COPYRIGHT
68  
69 Copyright 2001 - 2011 Adam Kennedy.
70  
71 This program is free software; you can redistribute
72 it and/or modify it under the same terms as Perl itself.
73  
74 The full text of the license can be found in the
75 LICENSE file included with this module.
76  
77 =cut
« PPI/Token/Quote/Literal.pm ↑ Summary PPI/Token/QuoteLike/Backtick.pm »