in reply to output string editing

I would suggest looking at Term::Readline::Gnu or some ncurses implementation if you're working from a commandline.

-----------------------------------
Frank Wiles <frank@wiles.org>
http://frank.wiles.org