# Discard the headers and footers splice @file, 0, $numHeaders; splice @file, $#file-$numFooters, $numFooters;