#! /usr/bin/perl -w
use strict;
use warnings;
my $source = shift @ARGV || die "usage: $0 source.html filtered.html";
my $dest = shift @ARGV || die "usage: $0 source.html filtered.html";
if (! -r $source) {
die "$0: cannot read $source";
}
if (-e $dest) {
die "$0: file exists! $dest";
}
open SOURCE, "<$source";
open DEST, ">$dest";
binmode(DEST);
my $inscript = 0;
my $startre = '';
while (my $line =