On Sun, 2008-11-16 at 08:35 -0800, hotkitty wrote: > How do I combine the arrays so that the the "newstuff" in array1 gets > appended only to an item in array2 if the dates match?
Create a hash of lists with the dates as its keys. Go through Array2 and push each oldstuff on the list stored in the hash. Then do it for Array1. Sort the keys by date, then run through them and create Array3 by joining the stuff from the hash. -- Just my 0.00000002 million dollars worth, Shawn The map is not the territory, the dossier is not the person, the model is not reality, and the universe is indifferent to your beliefs. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/