blib/lib/Filter/Object/Simple.pm

filter: Statementstmt 100% 26 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 32 / 32 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary
1 package Filter::Object::Simple;
2  
3 1 ▶use 5.008008;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Filter::Simple;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 require Exporter;
8  
9 1 our @ISA = qw(Exporter);
10  
11 1 our %EXPORT_TAGS = ( 'all' => [ qw(
12
13 ) ] );
14  
15 1 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
16  
17 1 our @EXPORT = qw(
18
19 );
20  
21 1 our $VERSION = '0.01';
22  
23 # Preloaded methods go here.
24 1 ▶FILTER {
Subroutine __ANON__: called CC=1 SCAR=0.0
25 1 s/%([a-z_]+?)\.(exists|defined|delete)\((.*?)\)/$2(\$$1\{$3\})/isg;
26 1 s/(%[a-z_]+?)\.(each|keys|values)(\(\s*\))?/$2 $1 /isg;
27 1 };
28  
29 1 ▶FILTER {
Subroutine __ANON__: called CC=1 SCAR=0.0
30 1 s/(@[a-z_]+?)\.(pop|reverse)\(\s*\)/$2($1)/isg;
31 1 s/(@[a-z_]+?)\.(unshift|push|splice)\((.+?)\)/$2( $1 , $3 )/isg;
32 1 s/([@%][a-z_]+?) # function name
33 \.(map|grep)\(
34 (.+?) # parameter
35 \)/$2 $3 $1/isxg;
36 1 };
37  
38  
39 1 1;
40 __END__
↑ Summary