For "git for Windows" you can do the following:
From
Ilya Zakharevich's package Term-ReadLine-Perl-1.0303
download the file
Term-ReadLine-Perl-1.0303.tar.gz
extract it with
tar xvzf ../Term-ReadLine-Perl-1.0303.tar.gz
Two files
Term-ReadLine-Perl-1.0303/ReadLine/Perl.pm
Term-ReadLine-Perl-1.0303/ReadLine/readline.pm
have to be copied typically with admin rights into the directory
C:/Program Files/Git/usr/share/perl5/site_perl/Term/ReadLine/
resulting in the two files
C:/Program Files/Git/usr/share/perl5/site_perl/Term/ReadLine/Perl.pm and
C:/Program Files/Git/usr/share/perl5/site_perl/Term/ReadLine/readline.pm
Afterwards you can use the cursor keys inside the perl debugger, for instance
inside a "perl -de 0" session.
In the 64 bit git for Windows SDK, you usually have to copy the two files into directory
C:/git-sdk-64/usr/share/perl5/site_perl/Term/ReadLine