XP is just a number | |
PerlMonks |
Re: How do i split a file into given number of parts.by trentonl (Initiate) |
on Dec 21, 2004 at 20:20 UTC ( [id://416610]=note: print w/replies, xml ) | Need Help?? |
Since you're just writing them out, perhaps you can use the unix 'split' command?
# n files each with no more than 10000 lines split --lines=10000 # files contaning at most 1 meg split --bytes=1m
In Section
Seekers of Perl Wisdom
|
|