in reply to Re: Check for a new line
in thread Check for a new line
$STAT_LINE = "$_"; push (@TOTAL_STATS, $STAT_LINE); if (@TOTAL_STATS >= $SPF) { foreach(@TOTAL_STATS) {print "$_"}; splice @TOTAL_STATS; }
But when there is no new line to print, the program just keeps waiting for a new line. What I want is a way to say that if there is no new line after 10 seconds push "Error" to the array
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Check for a new line
by jellisii2 (Hermit) on Jan 27, 2014 at 12:46 UTC | |
by h123 (Novice) on Jan 27, 2014 at 15:17 UTC | |
by dasgar (Priest) on Jan 27, 2014 at 15:46 UTC | |
by jellisii2 (Hermit) on Jan 27, 2014 at 15:41 UTC |