in reply to Re^2: IO::File Question
in thread IO::File Question

I know you would need to have one to count the number of lines written to each file (800 in this example) but would you not also want a counter to keep track of which new output file you are writing to and then pasting that on the end of the new file (4 would be made in this example) name?

Yes, you'd need to keep a counter that you increment each time you open a new output file, as well as a counter that you increment each time you write to the current output file (and that gets reset to zero each time you open a new file).

And you can still use IO::File to manage the opening and closing of files, and use lexically scoped scalar variables as "file handle objects".