in reply to $io->autoflush - which perl version?

1) looks like v5.14.

2) I think $| = 1; is what you want. See perlvar.