What script.pl does is look at the first line of each file and call the appropriate subroutine to process that file. The problem is that the subroutine should get the file whole, not with the first line missing (and there are reasons why the subroutines should not be rewritten to accomodate a file with the first line missing). So I would like script.pl to 'rewind' back to the beginning of the file before calling the subroutine.
Better yet, if there were some way that script.pl could 'peek' at the first line without removing it from the input stream.