in reply to Re^3: Pivoting 2 dimensional array refs
in thread Transposing 2 dimensional arrays

Are you really saying that you find

if( cond ) { $var = val1; } else { $var = val2; }

Substantially clearer or easier to code or understand than

$var = cond ? val1 : val2;
?

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^5: Pivoting 2 dimensional array refs
by Voronich (Hermit) on May 14, 2011 at 16:41 UTC
    Actually, just enough to not do it, yeah. I always have to double-take ternary assignments.
    Me
Re^5: Pivoting 2 dimensional array refs
by Anonymous Monk on May 14, 2011 at 14:31 UTC
    No no, that is still to confusing, you need more newlines
    if( cond ) { $var = val1; } else { $var = val2; }