D'oh, yeah, because of (?{ ... }). Sigh. Ok, I'm saying what the program does, since it's been so much of a hassle already. It prints all sequences (not necessarily continuous) of a string:
input: abcd
output: a b c d ab ac ad bc bd cd abc abd acd bcd abcd