blib/lib/PDL/NiceSlice/FilterSimple.pm untested

filter: Statementstmt 0.0% 0 / 9 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 3 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # This is the new Filter::Simple engine for PDL::NiceSlice
2 #
3 use Filter::Simple;
4  
5 FILTER_ONLY
6 all => sub { s/\r\n/\n/g if $^V lt v5.14.0 and $^O eq 'MSWin32'; },
7 code_no_comments =>
8 sub {
9 my ($text1,$text2) = ($_,'');
10 ## print STDERR "**************** Input: \n$text1\n";
11 $text2 = perldlpp('PDL::NiceSlice', $text1);
12 ## print STDERR "**************** Output: $text2\n";
13 $_ = $text2;
14 },
15 all => sub { print if $PDL::NiceSlice::debug_filter };
16  
17 1;