in reply to Arrow keys with Curses.pm

A first step would be to see what character getch is returning, and what's in KEY_LEFT. ord is useful for converting a nonprintable character to a number; you can use length to see if they're multi-character strings.