In article <[EMAIL PROTECTED]>,
Scott Wiersdorf <[EMAIL PROTECTED]> wrote:
>    $a && $a-- && do {
>        do_something();
>       ...
>    }
>
>Two questions: a) can it be shortened to fewer characters? and b) is
>there another way to do it better in general?

This is longer (not to mention demented) but should work with any true value:

(($a)=$a?():$a)|| do { ... }

Reply via email to