Sounds like you want the unix tool split.
It's pretty simple to do in Perl too. What have you tried?
In reply to Re: splitting a file by ikegami in thread splitting a file by boby