Debian Codegraph @

demo/demo_squeeze.pl

raw symbols SCIP
1 use Perl6::Slurpscip-perl cpan Perl6-Slurp 0.051005 Perl6/Slurp/;
2
3 sub squeezescip-perl cpan Perl6-Slurp 0.051005 main/squeeze(). {
4 my ($removed) = @_scip-perl cpan Perl6-Slurp 0.051005 main/`@_`.;
5 if ($removed =~ tr/\n/\n/ == 1) { return " " }
6 else { return "\n\n"; }
7 }
8
9 printscip-perl cpan Perl6-Slurp 0.051005 main/print(). slurpscip-perl cpan Perl6-Slurp 0.051005 main/slurp().(\*DATA, {irs=>qr/[ \t]*\n+/, chomp=>\&squeezescip-perl cpan Perl6-Slurp 0.051005 main/squeeze().}), "\n";
10
11 __END__
12 This is the
13 first paragraph
14
15
16 This is the
17 second
18 paragraph
19
20 This, the
21 third
22
23
24
25
26 This one is
27 the
28 very
29 last