- or download this
Most of the power comes from implicit smart matching:
when($foo)
...
is exactly equivalent to
when($_ ~~ $foo)
- or download this
# $a $b Type of Match Implied Matching Code
# ====== ===== ===================== =============
...
# Array Regex array grep grep /$b/, @$a
- or download this
given (@a) {
when (/abc/) {}
}