I haven't looked at your problem in detail, but I can tell you that the behavior of smart matching changed a lot between 5.10.0 and 5.10.1 (whereas it's relatively stable since 5.10.1).
Relying on the smart matching features of 5.10.0 thus isn't the best of ideas, comparable to building your house on sand.
A quick glance over the debug output implies that $mistery is the empty string, and thus numerically compares equal to '0'. But I could be wrong here.
In reply to Re: Strange Smart Match behavior
by moritz
in thread Strange Smart Match behavior
by OverlordQ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |