overload doesn't define operators; it redefines them. ?= would have to be added to perl by patch.
There is an alternative to a new or overloaded operator. One could use a tied hash. The only difference would be in the setter.
By the way, my function does not autovivify. At least, not in 5.6.x or 5.8.x.
In reply to Re^5: Shortcut operator for $a->{'b'}=$b if $b;
by ikegami
in thread Shortcut operator for $a->{'b'}=$b if $b;
by rokadave
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |