I have an array for which the following test returns true:
1 ~~ @a
And yet, the following test returns false:
@a ~~ 1
I read in Learning Perl that the placement of the values on either side of the smartmatch operator doesn't matter, but obviously in the above code it does. Why is that? Are the two statements checking different things?