Reviews by Adina Adler


Array-Diff (0.07) **

It's not perfect, and what I need right now is perfection.

I'm trying to determine which elements of an array need to be written out to a database, and which need to be deleted. I was hoping for something that would prevent me from having to do existence cross-checks, and this looked promising. However, when I gave it the arrays ('111','222','333') and ('222','333','111), the response was that '111' was both added and deleted. Seeing that this uses Algorithm::Diff helps me to understand why that's happening, but that's not a correct answer, and therefore I'm not giving it a very high rating.