Keep It Simple, Stupid | |
PerlMonks |
Re: Merging files, 1 line for every 10by Marshall (Canon) |
on Sep 07, 2011 at 04:06 UTC ( [id://924523]=note: print w/replies, xml ) | Need Help?? |
You have not adequately described the problem. Free Dictionary defines "merge" to mean : merge. In this case, perhaps combining two flows stepwise. This term: "evenly merge" does not have a clear definition that I know of.
Did you mean: ten rows from File1, then one row from File2? Ooops, update: I guess it really is simple. My bad. Loop for 10 lines from File1 and send each line to File3. Send one line from File2 to File3. Loop back for the next 10 lines from File1. What's the problem?
In Section
Seekers of Perl Wisdom
|
|