my $start_time = time(); my @data; while (time() < $start_time + 10) { # try to populate @data here } if (!@data) { print "error!\n"; } else { print @data; }
Unless I'm misunderstanding the problem, which is entirely possible.
In reply to Re^3: Check for a new line
by jellisii2
in thread Check for a new line
by h123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |