in reply to Difference between two arrays

I'd go with the output Algorithm::Diff and post-process the deletions/inserts into moves (if you can be sure that there are only moves and no lone deletions or inserts).

Replies are listed 'Best First'.
Re^2: Difference between two arrays
by rafl (Friar) on Mar 22, 2006 at 15:19 UTC

    Using Algorithm::Diff or List::Compare was also one those solutions I came up with, but I still think it's a quite ugly solution. I would really appreciate some code that can live without the usage of huge (and slow!) modules like the two above.

    Cheers, Flo