Subject: | Bug in Email::Simple::Header::header_set |
Date: | Fri, 16 Mar 2007 14:30:23 +0100 |
To: | bug-Email-Simple [...] rt.cpan.org |
From: | Nicholas Oxhøj <nicholas [...] oxhoej.dk> |
Hi
There seems to be a bug in Email::Simple::Header version 1.997_02
Line 231 (which comes into play when deleting headers) reads
splice @{$headers}, $_, 2 for reverse @indices[ -$overage, $#indices ];
which seems to be completely wrong. It always gets exactly TWO indices
(possibly the same one repeated) no matter what $overage is. I think it
should instead read something like
splice @{$headers}, $_, 2 for reverse @indices[ -$overage..-1 ];
instead...
Regards
Nicholas Oxhøj