The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
#!/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,
);