I think what you mean by "opposite", is that you want something that returns $this when $this // $that would normally return $that, and you want to do it in one line with only one mention of each of the 2 expressions:
defined ( $this ) ? $that : undef
defined ( $this ) && $that || undef
In reply to Re: What's the opposite of // (err) operator?
by thewebsi
in thread What's the opposite of // (err) operator?
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |