I have tried the \x switch for matching the hex code, and no luck. I also tried \0 switch for matching octal, and still no luck. I can get other keys like escape to work, but not the right or left arrow keys. Any ideas?Readmode(4); my $input = lc(ReadKey(0)); if ($input =~ m/left arrow key here/) { goto LEFT; } elsif ($input =~ m/right arrow key here/) { goto RIGHT; }
In reply to Regex arrow key problem by austin43
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |