So what's the point?
Is this supposed to be some sort of pseudo specification to your homework following up from your last one, that you just want perlmonks to write you a program for?..and you don't even bother to ask.
or is this just thinking out loud?
the hardest line to type correctly is: stty erase ^H