in reply to $io->autoflush - which perl version?
The command "corelist IO::Handle" says "IO::Handle was first released with perl 5.00307".
The other kind of kludgy but AFAIK backwards-compatible way to set autoflush on a handle is { my $tmp = select($io); $| = 1; select($tmp) }.
And your "if" statement could be written like this: if($] lt "5.008") ...
|
|---|