in reply to Convert array to tree OR why variable changes arbitrarily

Crossposted at StackOverflow. It is considered polite to inform about crossposting so people not attending both sites do not waste their efforts on a problem already solved at the other corner of the internets.

I am not going to copy & paste my whole advice here, but it seems strange to me no one has yet recommended hashes over arrays for the tree construction.

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
  • Comment on Re: Convert array to tree OR why variable changes arbitrarily

Replies are listed 'Best First'.
Re^2: Convert array to tree OR why variable changes arbitrarily
by Anonymous Monk on May 31, 2013 at 13:54 UTC
    The fact is that the problem was not solved on stackoverflow. Yes you presented considerably arguments why hashes and not arrays, but I was also wondering why is my @arr changing and it was not asked. I do not think that cross posting is bad, since there may be another peoples on perlmonks and stackoverflow, and as more answers/ideas/solutions the better.
      Crossposting is not bad. Crossposting without mentioning it is crossposting is bad.
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ