Help for this page

Select Code to Download


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