#!/usr/bin/perl use strict; no warnings 'redefine'; use ExtUtils::MakeMaker qw(prompt); use Time::Out qw(timeout); use Time::HiRes qw(alarm); test("Done\n"); if ($@) { print "Operation timed-out\n"; } sub test { timeout 20.37, @_ => sub { prompt("Please enter command: "); print "$_[0]\n"; }; }
In reply to Re: Keyboard timeout in perl
by Khen1950fx
in thread Keyboard timeout in perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |