# if invalid, assume it's latin1
$_ = decode(cp1252 => $_) if $@;
# if invalid, assume it's latin1
$_ = decode(cp1252 => $_) if $@;
if (defined $opt{min} or $opt{max}) {
my $counter = \$headercount{ $_->[0] }->{ $_->[1] // '' };
my $excess = $$counter++ - ($opt{min} // 0);
if (defined $opt{min} or $opt{max}) {
my $counter = \$headercount{ $_->[0] }->{ $_->[1] // '' };
my $excess = $$counter++ - ($opt{min} // 0);