See Term::ReadLine::Gnu.
In reply to Re: VI In A Perl Script by Joost in thread VI In A Perl Script by Metarika