$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
In reply to Re^2: Check for a new line
by h123
in thread Check for a new line
by h123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |