$foo //= $bar;
The // and //= operators will behave like || but will test for defined() rather than for truth.
-sam
In reply to Re: Effecient shortcut for ?:
by samtregar
in thread Effecient shortcut for ?:
by traveler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |