Perl comes with a built-in debugger that can be invoked by passing the -d flag to perl.
The default Term::ReadLine that comes with
Perl does not provide history (pressing the up arrow) in the debugger.
You need to install Term::ReadLine::Gnu for that.
Probably the best way to install a Perl module is to use cpanm.
Gabor can help refactor your old Perl code-base.
He runs the Perl Weekly newsletter.
Contact Gabor if you'd like to hire his service.
Buy his eBooks or if you just would like to support him, do it via Patreon.