![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Re: split a file into number of file based on line countby thiagu_mvt (Sexton) |
on May 13, 2009 at 07:21 UTC ( #763694=note: print w/replies, xml ) | Need Help?? |
In Perl you can read the input file into a array and find the length of the array.(everyline is a scalar now)divide that into 5 and write those into five files one by one in a loop.
In Section
Seekers of Perl Wisdom
|
|