in reply to calculating array average in HoA

local $" = "+"; printf "%s %.2f\n", $_, (eval "@{$HoA{$_}}") / @{$HoA{$_}} for keys % +HoA;

Replies are listed 'Best First'.
Re^2: calculating array average in HoA
by stevieb (Canon) on Apr 21, 2012 at 21:12 UTC

    Just out of curiosity, how did the OP err in their question to justify such an obfuscated, likely unhelpful response?

      Why do you think the OP had to err to get JavaFans reply? Also why do you think it is obfuscated and unhelpful?

      I say the line local $" = "+"; pretty much explained the rest of the code, and to me at least it was faster to understand JavaFans code than the first answer even though my solution would have been closer to that first answer.

Re^2: calculating array average in HoA
by stevieb (Canon) on Apr 22, 2012 at 12:49 UTC

    JavaFan, you have my apology if your reply to the OP wasn't meant to be sarcastic. We've just seen a fair amount of that lately, even on posts where the SoPW lay out relatively decent questions.

    Normally I'd discuss such an issue if I have one with the author of a post, especially if the tone of the reply is ambiguous in my mind, like this one is now.

    I spoke before I thought in this case, and alcohol wasn't even involved ;)