Updated: Thanks to Tanktalus for pointing out a few typos.use IO::Select; my $s = IO::Select->new(); $s->add(\*FILE); my @ready = $s->can_read(1800); # 60*30 seconds = 30 minutes foreach (@ready) { # read your handle }
In reply to Re^2: Issue with time() in loop?
by gri6507
in thread Issue with time() in loop?
by Elijah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |