Help for this page

Select Code to Download


  1. or download this
        my (@matches) = ($line =~ $re)
        if (defined $&) {
            $cb->(@matches);
            last;
        }
    
  2. or download this
        
        if ( my (@caps) = ($line =~ $re) ) {
            @caps = () if $caps[0] ne $1;           # reset pseudo capture
    +s
            $cb->(@caps);
            last;
        }