in reply to Re: header footer
in thread header footer

Oups, indeed.

Well then maybe setting the input file separator ($/) to "HDR" would work then.

Or s/HDR.{47}|FTR.{27}//g;, but it doesn't appeal much to me.