line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
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 object represents a single substitution |
23
|
|
|
|
|
|
|
regular expression. |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 METHODS |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
There are no methods available for C |
28
|
|
|
|
|
|
|
beyond those provided by the parent L, L |
29
|
|
|
|
|
|
|
and L classes. |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=cut |
32
|
|
|
|
|
|
|
|
33
|
65
|
|
|
65
|
|
361
|
use strict; |
|
65
|
|
|
|
|
98
|
|
|
65
|
|
|
|
|
1475
|
|
34
|
65
|
|
|
65
|
|
279
|
use PPI::Token::Regexp (); |
|
65
|
|
|
|
|
107
|
|
|
65
|
|
|
|
|
663
|
|
35
|
65
|
|
|
65
|
|
251
|
use PPI::Token::_QuoteEngine::Full (); |
|
65
|
|
|
|
|
108
|
|
|
65
|
|
|
|
|
3125
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
our $VERSION = '1.276'; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
our @ISA = qw{ |
40
|
|
|
|
|
|
|
PPI::Token::_QuoteEngine::Full |
41
|
|
|
|
|
|
|
PPI::Token::Regexp |
42
|
|
|
|
|
|
|
}; |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=pod |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 SUPPORT |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
See the L in the main module. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 AUTHOR |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Adam Kennedy Eadamk@cpan.orgE |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 COPYRIGHT |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
Copyright 2001 - 2011 Adam Kennedy. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
This program is free software; you can redistribute |
61
|
|
|
|
|
|
|
it and/or modify it under the same terms as Perl itself. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
The full text of the license can be found in the |
64
|
|
|
|
|
|
|
LICENSE file included with this module. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=cut |