How do we set the Perl's debug configuration in the terminal when doing perl -d -e "1;" on that
so that it can perform moving the cursor left if LEFT key is pressed and
moving the cursor right if RIGHT key is pressed, and
retrieve the previous commands have been typed if the UP key is pressed and so on.