laziness, impatience, and hubris | |
PerlMonks |
$io->autoflush - which perl version?by Doug_H (Initiate) |
on Mar 27, 2016 at 19:39 UTC ( [id://1158898]=perlquestion: print w/replies, xml ) | Need Help?? |
Doug_H has asked for the wisdom of the Perl Monks concerning the following question:
Hi there,
I would like to use $io->autoflush(1)from IO::Handle. Unfortunately it looks like in perl v5.10.0 it is not included in the core module. It works fine with version 5.16.2. Therefore I have 2 questions and hopefully you can help me. 1) Which perl version did add autoflush to the default core module? 2) How can I implement it that it is activated when the method is there. Something like this …
For any other ideas how I can solve that it works with 5.10.0 and all newer versions I would be very happy - thanks. Thanks for your help. Kind regards Doug EDIT: Sorry ... it looks like that it works when I add use IO::Handle;. It is not necessary with version 5.16.2 but required for 5.10.0 ?! Any idea why the different behaviour?
Back to
Seekers of Perl Wisdom
|
|