Help for this page

Select Code to Download


  1. or download this
    Any ~~ Array
    match against an array element
    grep $a ~~ $_, @$b
    
  2. or download this
    Any ~~ Regex
    pattern match
    $a =~ /$b/
    
  3. or download this
    use feature qw( say );
    
    ...
    for (qw( aaa bbb ccc ddd )) {
       say if $_ ~~ @pats;
    }
    
  4. or download this
    aaa
    ccc