anyone use perl in debug mod?

I use debugging mod via "perl -de 0". Everything is fine except I cannot move cursor back by "left arrow" key, so every time I type wrong, I have to delete the whold thing until I hit the one I want to correct. Also, It is not support for remembering last input. Any suggestion?

Or there is a good debug tool recommended?