in reply to confused: string and number comparison
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 Section
Seekers of Perl Wisdom