| 1 | package Regexp::Copy; | ||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | 1 | ▶ | use vars qw($VERSION @ISA @EXPORT @EXPORT_OK); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||
| 6 | 1 | ▶ | use Regexp::Storable; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||
| 8 | 1 | require Carp; | |||||||||||||||||||||||||||
| 9 | 1 | require Exporter; | |||||||||||||||||||||||||||
| 10 | 1 | require DynaLoader; | |||||||||||||||||||||||||||
| 11 | 1 | require AutoLoader; | |||||||||||||||||||||||||||
| 12 | |||||||||||||||||||||||||||||
| 13 | 1 | @ISA = qw(Exporter DynaLoader); | |||||||||||||||||||||||||||
| 14 | |||||||||||||||||||||||||||||
| 15 | 1 | @EXPORT = qw( ); | |||||||||||||||||||||||||||
| 16 | 1 | @EXPORT_OK = qw(re_copy); | |||||||||||||||||||||||||||
| 17 | 1 | $VERSION = '0.06'; | |||||||||||||||||||||||||||
| 18 | |||||||||||||||||||||||||||||
| 19 | |||||||||||||||||||||||||||||
| 20 | 1 | bootstrap Regexp::Copy $VERSION; | |||||||||||||||||||||||||||
| 21 | |||||||||||||||||||||||||||||
| 22 | 1 | ▶ | sub re_copy { | ||||||||||||||||||||||||||
|
Subroutine
re_copy: called CC=4 SCAR=16.9
Pod
documented
| |||||||||||||||||||||||||||||
| 23 | 1 | for (@_) { | |||||||||||||||||||||||||||
| 24 | 2 | ▶ | if (uc(ref($_)) eq ref($_) && !$_->isa('Regexp')) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
uc ref $_ eq ref $_ and not $_->isa("Regexp")
MC/DC0%0/2
uc ref $_ eq ref $_ and not $_->isa("Regexp")
uc ref $_ eq ref $_
not $_->isa("Regexp")
Truth table33%1/3
A and not(B)
A= uc ref $_ eq ref $_B= not $_->isa("Regexp")
| |||||||||||||||||||||||||||||
| 25 | 0 | Carp::croak "parameters to re_copy must be blessed and isa(Regexp)"; | |||||||||||||||||||||||||||
| 26 | } | ||||||||||||||||||||||||||||
| 27 | } | ||||||||||||||||||||||||||||
| 28 | 1 | re_copy_xs(@_); | |||||||||||||||||||||||||||
| 29 | } | ||||||||||||||||||||||||||||
| 30 | |||||||||||||||||||||||||||||
| 31 | |||||||||||||||||||||||||||||
| 32 | 1 | 1; | |||||||||||||||||||||||||||
| 33 | |||||||||||||||||||||||||||||
| 34 | __END__ | ||||||||||||||||||||||||||||