use overload '+' => sub { Class->new($_[1])-> add($_[0]) };
but impossible to
use overload '=~' => sub { Class->new($_[1])-> match($_[0]) };
... and of course, I want my own implementation of match() here, unrelated to perl5 regexes.
In reply to Re^2: overload =~ operator
by dk
in thread overload =~ operator
by dk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |