File: FilterSimple.pm

package info (click to toggle)
pdl 1%3A2.007-4
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 11,848 kB
  • ctags: 6,321
  • sloc: perl: 32,760; fortran: 13,113; ansic: 9,273; makefile: 81; sh: 32
file content (17 lines) | stat: -rw-r--r-- 493 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# This is the new Filter::Simple engine for PDL::NiceSlice
#
use Filter::Simple;

FILTER_ONLY
   all => sub { s/\r\n/\n/g if $^V lt v5.14.0 and $^O eq 'MSWin32'; },
   code_no_comments =>
      sub {
      my ($text1,$text2) = ($_,'');
      ## print STDERR "**************** Input: \n$text1\n";
      $text2 = perldlpp('PDL::NiceSlice', $text1);
      ## print STDERR "**************** Output: $text2\n";
      $_ = $text2;
   },
   all => sub { print if $PDL::NiceSlice::debug_filter };

1;