Help for this page

Select Code to Download


  1. or download this
        if (&{sub { $bigstring =~ /$_/ and return 1 for @array }}) {
            ...;
        }
    
  2. or download this
        my $matched;
        $matched = $bigstring =~ /$_/ and last for @array;
        if ($matched) {
            ...;
        }
    
  3. or download this
        if (grep $_, map $bigstring =~ /$_/, @array) {
            ...;
        }
    
  4. or download this
        if (map $bigstring =~ /$_/ ? 1 : (), @array) {
            ...;
        }