Also, your smartmatch is wrong on the array case, where P5 and P6 differ. In P6 you must say any(@list), or you're asking if $x matches the entire list (where you are presuming that $x is some other listy object).
In reply to Re: Perl 6 mini-essay: eqv, ===, =:=, etc.
by TimToady
in thread Perl 6 mini-essay: eqv, ===, =:=, etc.
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |