Help for this page

Select Code to Download


  1. or download this
    while( $input =~ m{\G(?:.{$n})*?(?=fred(....))}g ) {
        pos($input) += $n;
    
    ...
        # do stuff with $1
        # ...
    }
    
  2. or download this
        pos($input) += $n * int((length('fred'.$1) - 1) / $n + 1);