# somewhere in your code, perhaps in the search sub itself. local $| = 1;