in reply to Re^2: Tear it apart...select()
in thread Tear it apart...select()
The problem is that its obscurity offsets any useful gain over just writing it as a normal two or three step process.
Another way to do it without using a "temporary" variable might be something like:
But I'd argue this is just as obscure.for (select(HANDLETOUNBUFFER)) { $|++; select($_); }
Moral of the story: it's ok to say my $old = select(NEW); when you need the old handle. It's fine. Don't worry. Be happy.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Tear it apart...select()
by Aristotle (Chancellor) on Mar 02, 2003 at 15:47 UTC | |
by merlyn (Sage) on Mar 02, 2003 at 16:01 UTC | |
by Aristotle (Chancellor) on Mar 02, 2003 at 16:06 UTC |