Audit all local() calls within lib/ and t/lib
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest.pm
index 2e265b5..b43d4bf 100644 (file)
@@ -20,8 +20,8 @@ BEGIN {
   # prove) but I do not know it offhand, especially on older environments
   # Go with the safer option
   if ($INC{'Test/Builder.pm'}) {
-    local $| = 1;
-    print "#\n";
+    select( ( select(\*STDOUT), $|=1 )[0] );
+    print STDOUT "#\n";
   }
 }