in reply to Weird interaction of tie and overload
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Weird interaction of tie and overload
by rg0now (Chaplain) on Jul 27, 2005 at 07:27 UTC | |
by ikegami (Patriarch) on Jul 27, 2005 at 14:02 UTC |