Thread STDIN überspringen (8 answers)
Opened by naich at 2004-05-19 12:12

sri
 2004-05-19 12:44
#82543 #82543
User since
2004-01-29
828 Artikel
BenutzerIn
[Homepage] [default_avatar]
perldoc perlipc

Code: (dl )
1
2
3
4
5
6
7
8
9
eval {
$|++;
local $SIG{ALRM} = sub { die "timeout!" };
alarm(2);
print "INPUT: ";
my $input = <STDIN>;
print "INPUT: $input";
};
print "END!\n";
\n\n

<!--EDIT|sri|1084956873-->

View full thread STDIN überspringen