Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
My concern was that some sort of alarm would be needed to interrupt the while loop if no data was forthcoming.. (i've seen reference to a couple of modules here, but would realy prefer to hardcode this rather than using external code).#start timer; while (<$socket>) { # check timer # grab a bit of data }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Timing Socket Output
by pfaut (Priest) on Jan 27, 2003 at 15:12 UTC | |
|
Re: Timing Socket Output
by Ryszard (Priest) on Jan 27, 2003 at 15:46 UTC |