[svn:perlfaq] r5946 - perlfaq/trunk
[email protected] Thu, 20 Apr 2006 15:27:47 -0700 (PDT)
| Newsgroups | perl.cvs.perlfaq |
|---|---|
| Message-ID | <[email protected]> |
Author: rafael Date: Thu Apr 20 15:27:46 2006 New Revision: 5946 Modified: perlfaq/trunk/perlfaq5.pod Log: Remove a couple of weird idioms, that might be confusing for readers of an FAQ. Suggested by Joshua ben Jore on P5P. Modified: perlfaq/trunk/perlfaq5.pod ============================================================================== --- perlfaq/trunk/perlfaq5.pod (original) +++ perlfaq/trunk/perlfaq5.pod Thu Apr 20 15:27:46 2006 @@ -40,12 +40,6 @@ $| = 1; select($old_fh); -Some idioms can handle this in a single statement: - - select((select(OUTPUT_HANDLE), $| = 1)[0]); - - $| = 1, select $_ for select OUTPUT_HANDLE; - Some modules offer object-oriented access to handles and their variables, although they may be overkill if this is the only thing you do with them. You can use IO::Handle: