line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Regexp::Copy; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
6022
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
42
|
|
4
|
1
|
|
|
1
|
|
5
|
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
71
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
638
|
use Regexp::Storable; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
182
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
require Carp; |
9
|
|
|
|
|
|
|
require Exporter; |
10
|
|
|
|
|
|
|
require DynaLoader; |
11
|
|
|
|
|
|
|
require AutoLoader; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
@ISA = qw(Exporter DynaLoader); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
@EXPORT = qw( ); |
16
|
|
|
|
|
|
|
@EXPORT_OK = qw(re_copy); |
17
|
|
|
|
|
|
|
$VERSION = '0.06'; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
bootstrap Regexp::Copy $VERSION; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub re_copy { |
23
|
1
|
|
|
1
|
1
|
497
|
for (@_) { |
24
|
2
|
50
|
33
|
|
|
15
|
if (uc(ref($_)) eq ref($_) && !$_->isa('Regexp')) { |
25
|
0
|
|
|
|
|
0
|
Carp::croak "parameters to re_copy must be blessed and isa(Regexp)"; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
} |
28
|
1
|
|
|
|
|
192
|
re_copy_xs(@_); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |