in reply to Re^2: Check for a new line
in thread Check for a new line
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Check for a new line
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 |