in reply to Re^4: Tear it apart...select()
in thread Tear it apart...select()

Well, that still makes it inside out, and also introduces a do block, which is not necessarily obvious.

The obvious approach that reads nicely and keeps a confined temp var is:

{ my $old = select NEW; $|++; select $old }
No fuss, no muss. Reads left to right. Says what it does.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^5: Tear it apart...select()
by Aristotle (Chancellor) on Mar 02, 2003 at 16:06 UTC
    Fair enough. I have a tendency to prefer a more functional style and to avoid actual naked blocks, but that's just my bias.

    Makeshifts last the longest.