Help for this page

Select Code to Download


  1. or download this
    ## capture 10 chars (with advancing), then move back 7:
    
    ...
        print "current window = $1\n";
        pos $dna -= 7;
    }
    
  2. or download this
    ## capture next 10 chars without advancing, then advance by 3:
    
    while ( $dna =~ /(?= (.{10}) ) .{3}/gx ) {
        print "current window: $1\n";
    }