in reply to Re: using Algorithm::Diff for floats (Updated)
in thread using Algorithm::Diff for floats

The default key generation process stringifies (the keys end up as hash keys), which removes the object nature and prevents your overloaded cmp from being called.

The only comparisons you see are for the "trim leading/trailing identical items" step that preceeds the 'longest common subsequence' algorithm (to make it faster).

- tye        

  • Comment on Re^2: using Algorithm::Diff for floats ('bug')

Replies are listed 'Best First'.
Re^3: using Algorithm::Diff for floats ('bug')
by BrowserUk (Patriarch) on Jul 28, 2004 at 06:11 UTC

    Not a bug then, just my attempt at cleverness falling flat on it's face. I did look, but I didn't understand.

    Thanks.


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail
    "Memory, processor, disk in that order on the hardware side. Algorithm, algoritm, algorithm on the code side." - tachyon