The stupid question is the question not asked | |
PerlMonks |
split file into smaller chunksby Anonymous Monk |
on Jul 17, 2009 at 08:48 UTC ( [id://780962]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello monks! I have a file with multiple records, that are separated with "//", like the following format:
Can I split the file into smaller files that contain say 1000 records each? I have started writing something like: Would it be efficient to use an "if" clause, like: or is there a quicker way to do it? Thanks!
Back to
Seekers of Perl Wisdom
|
|