in reply to Simulate "editable" keyboard input

For *nixes, there's Term::ReadLine and Term::ReadLine::Gnu for that, but you're on Windows... maybe Win32::Console serves as a starting point.

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}