in reply to Re: Evaluation Disorder
in thread Evaluation Disorder

Update: D'oh I am completely wrong .. didn't catch the precendence (I thought the sort was coming before the trinary ?: )

Replies are listed 'Best First'.
Re^3: Evaluation Disorder
by tadman (Prior) on Apr 06, 2001 at 19:43 UTC
    ?: binds tighter than a function, so it takes precedence, yes.
    sub bleh { sort @_ ? @_ : 0; }
    Which is the same as:
    sub bleh { sort (@_ ? @_ : 0); }
    But perhaps you meant:
    sub bleh { (sort @_) ? @_ : 0; }
    Though I'm not really sure what you mean by this at all, since you aren't really using the results of the sort for any constructive purpose.