1. Shlomi Fish
  2. perl-HTML-Strip-Whitespace

Commits

shl...@52c325ad-5fd0-0310-8a0f-c43feede02cc  committed 8d204af

Added the strip-ws.pl example.

  • Participants
  • Parent commits e2ee408
  • Branches default

Comments (0)

Files changed (2)

File MANIFEST

View file
 Build.PL
 Changes
 COPYING
+examples/strip-ws.pl
 lib/HTML/Strip/Whitespace.pm
 Makefile.PL
 MANIFEST

File examples/strip-ws.pl

View file
+#!/usr/bin/perl 
+
+# An HTML-Stripping Filter.
+
+use strict;
+use warnings;
+
+use HTML::Strip::Whitespace qw(html_strip_whitespace);
+
+my $buffer = "";
+html_strip_whitespace(
+    'source' => \*STDIN,
+    'out' => \*STDOUT,
+);
+