How does smartmatch array against number work in Perl?
===

In the "Programming Perl" it is said that when using `~~` with `any` on the left and `num` on the right the result of the `smartmatch` would be the comparison for numeric equality.

So I suppose that the following must output `1`. Cause as I understood the `@arr` should be converted to scalar `1` cause it has 1 element, as if it were `say @arr == $num`

    my @arr = ('aaa');
    my $num = 1;
    say @arr ~~ $num;

But this outputs an empty string.

Would be anyone so pleasant to explain? My appreciation.