++ for formating the code correctly... but - - - in part for posting at least two unrelated questions in the same SOPW... and for the pointless, overstated or ambiguous use of "nasty" in part 1 of question 1.
But the real reason for the (offsetting1 downvote is the hope that it will prod you to read On asking for help and How do I post a question effectively? and to start familiarizing yourself with the perldocs available on your own machine. Run perldoc perltoc there are see perltoc. And, not just BTW, googling this site with appropriate keywords related to your question will often spare you the wait for an answer.
You've received very decent answers to your questions; you'll continue to get those here as you progress to more complex issues... if you show a bit more effort before asking others to dedicate their time to your problems.
1 IOW, no upvote or downvote cast; mentioned as instructional points, only.
In reply to Re: Escape characters and arrow keys and pp
by ww
in thread Escape characters and arrow keys and pp
by 7cardcha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |