John A asked: > > This new turbo-charged 'smart match' operator will also work on arrays, > > hashes, and lists:
> It's very cool--but why is it $key =~ %hash but $value =~ @array rather
> than one way or the other?
Because it's *both* ways. Perl 6's C<=~> operator is reversible.
So you can write:
$key =~ %hash
or:
%hash =~ $key
and:
$value =~ @array
or:
@array =~ $value
depending on how the muse takes you.
Damian
