#!/usr/bin/perl -w
use strict;
use 5.018;
# find linkchecker error reports in html report, linkchecker-out20151120.html
$/ = '
];
# errmsg from file:
# ResultError: 404.... | ( or 301 etc.)
# ResultError: SSLError: [Errno 1] _ssl.c:504:.... |
my $errmsg = qr[ResultError:.*?(?= | )];
my $eot = qr[