1 2 3 4 5 6 7 8 9
use NCurses; my $win = initscr(); noecho(); cbreak(); keypad( $win, True ); my $key = getch(); endwin(); say $key;
1 2 3 4 5
use strict; use warnings; my $in = <STDIN>; printf "Anzahl Bytes: %d\nOktetten: %02X %02X", length $in, unpack "C*", $in;