Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
sub read_input {
local $SIG{ALRM} = sub { die "session timed out" };
alarm 3600;
my $input = <STDIN>;
alarm 0;
return $input;
};
sub read_input {
my $input;
eval {
local $SIG{ALRM} = sub { die 'session timed out' };
alarm 3600;
$input = <STDIN>;
alarm 0;
}
if ( $@ && $_ eq 'session timed out' ) {
# clean-up code here
exit;
}
return $input;
};