smart match :
use 5.010001; if ('abcd' ~~ 0) #prints equal if (0 ~~ 'abcd') #prints different
Since 5.010001 the smart match operator cares about the order of the operands.
In reply to Re: confused: string and number comparison
by nikosv
in thread confused: string and number comparison
by wwe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |