You have to use POSIX::Termios, see POSIX. Alternatively, call the raw ioctls.
In reply to Re: stty functionality in Perl by ambrus in thread stty functionality in Perl by CountOrlok