We definitely use newsgroup names as hash keys, so get rid
of the duplicate value for some memory savings when we have
hundreds or thousands of newsgroups.
delete $ibx->{newsgroup};
warn "newsgroup name invalid: `$ngname'\n";
} else {
- my $lc = $ibx->{newsgroup} = lc $ngname;
+ %dedupe = (lc($ngname) => undef);
+ my ($lc) = keys %dedupe;
+ $ibx->{newsgroup} = $lc;
warn <<EOM if $lc ne $ngname;
W: newsgroup=`$ngname' lowercased to `$lc'
EOM