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".
In reply to Re^3: IO::File Question
by graff
in thread IO::File Question
by chinamox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |