If I add
use overload '0+' => \# sub num { print "[$_[0]->[0]]"; return $_[0]->[0]; }
I get:
[1][1]1 == 1 1 != 3 1 != 4 [1][3]3 != 1 3 == 3 3 != 4 [1][4]4 != 1 4 != 3 4 == 4
In other words, it fails on each first pass of the inner loop. (In might also be failing on the first pass of the outer loop, but we can't tell.) I don't know what that means, though.
In reply to Re: Weird interaction of tie and overload
by ikegami
in thread Weird interaction of tie and overload
by rg0now
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |