use strict; use warnings; use 5.010; my @arr = (2, 5 , "aaa"); say "\@arr ~~ 5 matches" if @arr ~~ 5; say "5 ~~ \@arr matches" if 5 ~~ @arr; say "\@arr ~~ 3 matches" if @arr ~~ 3; __END__ 5 ~~ @arr matches #### Any Num numeric equality $a == $b