| 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; |