in reply to Re^6: Regex arrow key problem
in thread Regex arrow key problem

If Dumper says $input contains "\e[C\n", then $input contains "\e[C\n". You're telling me $input doesn't contain "\e[C\n" anymore, so you need to find out what $input contains. You can use Data::Dumper to do that as I've already shown.

Replies are listed 'Best First'.
Re^8: Regex arrow key problem
by austin43 (Acolyte) on Dec 01, 2010 at 20:20 UTC
    No, it does contain what you said it contains. For some reason though it will not make the arrow keys function for what I want them to.

      If so, the if would work. Can't have it both ways. Which one is it? Does $input contain "\e[C\n" or does the if work?

      Note that it shouldn't contain what you said it contains. There shouldn't be a trailing "\n".