http://www.perlmonks.org?node_id=1077078


in reply to Re^3: header footer
in thread header footer

i tried testing this with the big file.
while ( <$FILE1> ) { s/^HDR.{47}//;
is not stripping off the HDR and the following 47 characters.It looks like the 47th character is on a newline and hence not working? If i do a s/^HDR.{10}//; as a test it strips off the HDR fine. i also tried s/^HDR.{47}//g; doesnt make a difference. ***************** Never mind, found it. s/^HDR.{47}//s did it. Thanks.