I want to be able to time out when reading a handle with the angle operator:
$TIMEOUT_FOR_ANGLE_IO = 2.35;
my $line = <STDIN>;
print 'you took too long' unless defined($line);
Where $line would be undefined if a line is not read within the time specified, where that variable would be a perl predefined global. Day dreaming aside, what would the easiest way to accomplish this be? (and with a hi-res timer, please :-) I guess I could start by looking at signal handlers. Thanks in advance for any help.