You reset $hdr, but you still keep the filehandle $fh open to it. I'm surprised that the results are rather benign.
If you want to modify $hdr while still keeping the filehandle open, I suggest that you manipulate $fh instead:
seek $fh, 0, 0; truncate $fh;
In reply to Re: WWW::Curl mysterious header values persisting
by Corion
in thread WWW::Curl mysterious header values persisting
by mje
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |