in reply to Re^2: Sort mechanics problems with objects and potentially contradicting comparisons (would cause infinite loop)
in thread Sort mechanics problems with objects and potentially contradicting comparisons (would cause infinite loop)

Do you really think that adding my $o = bless({}); is going to make a difference? Why? Did you try it?
  • Comment on Re^3: Sort mechanics problems with objects and potentially contradicting comparisons (would cause infinite loop)
  • Download Code

Replies are listed 'Best First'.
Re^4: Sort mechanics problems with objects and potentially contradicting comparisons (would cause infinite loop)
by anonymized user 468275 (Curate) on Jun 06, 2016 at 15:54 UTC
    It was already blessed in the constructor and all methods including the sort routine are in the same class. I don't understand why you are so surprised under the circumstances. Also, why would they call it bless if it had no magic about it? However, I do expect it has something to do with the inheritance magic as I can't reproduce it in an inherticance free case.

    One world, one people

      You said a function received an argument when you didn't pass any. I'm not surprised; I flat out don't believe it.