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
- Next message: R. Joseph Newton: "Re: selecting select as an option was Re: first steps with perl, a log reader"
- Previous message: R. Joseph Newton: "Re: first steps with perl, a log reader"
- In reply to: Drieux: "selecting select as an option was Re: first steps with perl, a log reader"
- Next in thread: R. Joseph Newton: "Re: selecting select as an option was Re: first steps with perl, a log reader"
- Reply: R. Joseph Newton: "Re: selecting select as an option was Re: first steps with perl, a log reader"
- Reply: Drieux: "Re: selecting select as an option was Re: first steps with perl, a log reader"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: R. Joseph Newton: "Re: selecting select as an option was Re: first steps with perl, a log reader"
- Previous message: R. Joseph Newton: "Re: first steps with perl, a log reader"
- In reply to: Drieux: "selecting select as an option was Re: first steps with perl, a log reader"
- Next in thread: R. Joseph Newton: "Re: selecting select as an option was Re: first steps with perl, a log reader"
- Reply: R. Joseph Newton: "Re: selecting select as an option was Re: first steps with perl, a log reader"
- Reply: Drieux: "Re: selecting select as an option was Re: first steps with perl, a log reader"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|