Currently, if you hold down 'r', it will call &subroutine1 multiple times. Is there a way to make the keys only read once when held down? Thanks in advance.use Term::ReadKey; ReadMode(4); my $input = lc(ReadKey(0)); if ($input =~ m/r/) { &subroutine1; } ReadMode(0); exit;
In reply to ReadKey only read once? by austin43
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |