in reply to I'm new and unwise and need help

I'd do option #2 as anonymous monk suggested. I'd then write a for loop to loop through your 50 files, calling the subroutine each time. I'd create the filehandles on-the-fly, incrementing the number in the filehandle each time from 162 to 217.

Replies are listed 'Best First'.
Re^2: I'm new and unwise and need help
by Anonymous Monk on Feb 16, 2015 at 23:25 UTC

    Welcome to the Monastery, smknjoe!

    Just to point out a minor technicality: You probably mean filenames, which isn't the same thing as a filehandle.

      Ooops, I meant filenames, not filehandles.