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

Impossible. Either you didn't run the code I gave you, you didn't give me the output you got, or you changed something else.

Replies are listed 'Best First'.
Re^6: Regex arrow key problem
by austin43 (Acolyte) on Dec 01, 2010 at 20:08 UTC
    I ran the Data::Dumper code and it spit out exactly "\e[C\n" for right and "\e[D\n" for left. I then implemented it exactly as follows.
    if ($input eq "\e[C\n")

      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.

        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.
        -