Help for this page

Select Code to Download


  1. or download this
        if ( my (@caps) = ($line =~ $re) ) {
            no warnings 'uninitialized';
    ...
            $cb->(@caps);
            last;
        }
    
  2. or download this
        my (@matches) = ($line =~ $re)
        if (defined $&) {
            $cb->(@matches);
            last;
        }
    
  3. or download this
    use v5.12;
    use warnings;
    ...
            }
        }
    }
    
  4. or download this
    
    ****** str=<AB>
    ...
    matched
    no captures