in reply to Bug in Array::Compare? (no, really)

You mean the behavior of Array::Compare depends on the behavior of caller... to which I can only say: WTF???

That seems like the worst possible way to implement anything (apart from modules that actually have a reason to depend on caller).

Well, I've glanced at the source. It is true. I am appalled.

  • Comment on Re: Bug in Array::Compare? (no, really)

Replies are listed 'Best First'.
Re^2: Bug in Array::Compare? (no, really)
by ysth (Canon) on Apr 19, 2009 at 19:03 UTC
    Yes, it's almost shocking that simple_compare wasn't just given an additional parameter to request the different behavior (or perm and simple_compare both made to call a third, internal function with an extra parameter).