in reply to Re: IO::File Question
in thread IO::File Question
Thank you for your response.
This little problem is part of a larger class assignment. Having already looked at the UNIX man page for ‘split’ can definitely I see your point. However I think the idea is more about me to learning about IO::File than actually finding the most efficient way of doing this particular problem and so don’t want to risk being too clever for my own good here.
I realize that this maybe inefficient, but I think your idea of using a line counter is very good. Would you need one or two counters? 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?
-mox
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: IO::File Question
by ikegami (Patriarch) on Oct 23, 2006 at 06:20 UTC | |
|
Re^3: IO::File Question
by graff (Chancellor) on Oct 23, 2006 at 05:15 UTC |