PPI/Token/Regexp/Substitute.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 20 / 20 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« PPI/Token/Regexp/Match.pm ↑ Summary PPI/Token/Regexp/Transliterate.pm »
1 package PPI::Token::Regexp::Substitute;
2  
3 =pod
4  
5 =head1 NAME
6  
7 PPI::Token::Regexp::Substitute - A match and replace regular expression token
8  
9 =head1 INHERITANCE
10  
11 PPI::Token::Regexp::Substitute
12 isa PPI::Token::Regexp
13 isa PPI::Token
14 isa PPI::Element
15  
16 =head1 SYNOPSIS
17  
18 $text =~ s/find/$replace/;
19  
20 =head1 DESCRIPTION
21  
22 A C<PPI::Token::Regexp::Substitute> object represents a single substitution
23 regular expression.
24  
25 =head1 METHODS
26  
27 There are no methods available for C<PPI::Token::Regexp::Substitute>
28 beyond those provided by the parent L<PPI::Token::Regexp>, L<PPI::Token>
29 and L<PPI::Element> classes.
30  
31 =cut
32  
33 62 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
34 62 ▶use PPI::Token::Regexp ();
Subroutine BEGIN: called CC=1 SCAR=0.0
35 62 ▶use PPI::Token::_QuoteEngine::Full ();
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 = qw{
41 PPI::Token::_QuoteEngine::Full
42 PPI::Token::Regexp
43 };
44 }
45  
46 62 1;
47  
48 =pod
49  
50 =head1 SUPPORT
51  
52 See the L<support section|PPI/SUPPORT> in the main module.
53  
54 =head1 AUTHOR
55  
56 Adam Kennedy E<lt>adamk@cpan.orgE<gt>
57  
58 =head1 COPYRIGHT
59  
60 Copyright 2001 - 2011 Adam Kennedy.
61  
62 This program is free software; you can redistribute
63 it and/or modify it under the same terms as Perl itself.
64  
65 The full text of the license can be found in the
66 LICENSE file included with this module.
67  
68 =cut
« PPI/Token/Regexp/Match.pm ↑ Summary PPI/Token/Regexp/Transliterate.pm »