The stupid question is the question not asked | |
PerlMonks |
Re: what is the meaning of $| in perl? (Buffering/autoflush/Unicode/UTF-8 References)by eyepopslikeamosquito (Archbishop) |
on Mar 10, 2014 at 19:13 UTC ( [id://1077742]=note: print w/replies, xml ) | Need Help?? |
Now that you know what $| is, I suggest you don't use it! For Perl 5.8+, instead of your global LOGFILE file handle and: it is preferable to use a lexical file handle ($logfile say) and then simply:
Note that for Perl 5.14+ you don't need use IO::Handle because: Before Perl 5.14, lexical filehandles were objects of the IO::Handle class, but you had to load IO::Handle explicitly before you could call methods on them. As of Perl 5.14, lexical filehandles are instances of IO::File and Perl loads IO::File for you. Extra References Added Later From On Interfaces and APIs:
See also:
PM References
Unicode/UTF-8
In Section
Seekers of Perl Wisdom
|
|