This is just a quick note to myself. I spend a lot of time in the perl debugger (perl -d -e 1) and CPAN (perl -MCPAN -e shell) in Ubuntu and hate the way that when I get to the perl shell my keyboard cursor keys stop doing useful things like scrolling through my history and start producing garbage like "^[[A", "^[[B" "^[[C" and "^[[D" (up arrow, down arrow, right arrow and left arrow respectively).
I have fixed this several times on other boxes,...