Re: selecting select as an option was Re: first steps with perl, a log reader

From: R. Joseph Newton (rjnewton_at_efn.org)
Date: 11/17/03


Date: Sun, 16 Nov 2003 21:22:37 -0800
To: drieux <drieux@wetware.com>

drieux wrote:

> I on the other hand have had the unpleasantry of FORGETTING
> that I was whacking new code in that was doing a 'select'.
>
> So one solution is to make sure that IF you do a select that
> you put things back where you found them, eg:
>
> my $oldfh = select($newfh);
> # the neat new stuff here
> ...
> select($oldfh);

...or better yet, to redo your code a little, and write to and read
from explicitly-selected filehandles.

Joseph



Relevant Pages

  • Re: Suse or Mandrake
    ... Joseph wrote: ... Now you just aren't whacking ... the other guy over the head you are backing it up with another's highly ...
    (alt.os.linux)
  • Re: Parsing for base domain
    ... drieux wrote: ... > This is a part of the reason that trying to pick out the ... Such cases are rare, ... Joseph ...
    (perl.beginners)