develooper Front page | perl.beginners | Postings from August 2009

Re: better readline?

Thread Previous | Thread Next
From:
Bryan R Harris
Date:
August 6, 2009 08:14
Subject:
Re: better readline?
Message ID:
C6A05D8A.352E8%Bryan_R_Harris@raytheon.com

> On Wed, Aug 5, 2009 at 14:52, Bryan R Harris<Bryan_R_Harris@raytheon.com>
> wrote:
> snip
>> I didn't change anything, actually -- it never printed the "8/2 Updated
>> database" string.  It prompted with the "Enter a date and note:", I typed
>> "Uh." and that was it.  Maybe my version of perl doesn't have a good
>> Term::Readline::Perl?  How do I find out?  I'm on OS X 10.5, which is still
>> at perl 5.8.8.
> snip
> 
> Hmm, it looks like Term::ReadLine::Perl needs to be installed.  You
> can get it on CPAN: http://search.cpan.org/dist/Term-ReadLine-Perl

 
That works now, mostly.
 
I've read everything I can find on it, but can't find documentation of the
main feature I'm interested in, i.e. pre-loading the buffer with text.  It
works, I just don't see it documented.
 
Also, is addHistory() supposed to retain history *between* runs?  i.e. store
it in a file somewhere?  If not, what's the "progname" part for?

Thanks!  Neat stuff.
 
- Bryan



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About