Example use:
use overload "+" => \&add, fallback => 1;
- overload takes a hash
- key: operator or keyword 'fallback'
- fallback
- undef - Attempt to autogenerate methods and die if a method can't be autogenerateddefault.
- 0 - Never try to autogenerate methods. You can set nomethod keyword to a coderef to deal with missing methods.
- 1 - Attempt to autogenerate methods but fall back on Perl's default behavior for the the object if a method can't be autogenerated.
- value: a code ref or sub name