in reply to splitting up data...

Check out File::Split.

---
It's all fine and dandy until someone has to look at the code.