For recent enough perls the smartmatch ~~ operator
Smart matching was retroactively documented as experimental since v5.16 (2012), and once in a while there are discussions on P5P on completely overhauling its behavior. I wouldn't recommend it, as code relying on it may break on newer versions of Perl. As of v5.18 using it will generate warnings about its experimental status.
I also mentioned that the behavior of == can be changed with operator overloading in my other replies in this thread.
In reply to Re^2: Python 'is' command
by haukex
in thread Python 'is' command
by betmatt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |