Help for this page

Select Code to Download


  1. or download this
    ($_ = 'aaab') =~ m/(.)((?!\1).)/ and print "$1|$2";
    
  2. or download this
    a|b
    
  3. or download this
    $_ = 'aaaabbbccddee';
    while (m/(.)(.)(??{$1 eq $2})/g)
    {
        print "$1|$2\n";
    }
    
  4. or download this
    a|b
    b|c
    c|d
    d|e