Re: Accepting terminal input with pre-loaded editable value

2009-03-30 Thread Chas. Owens
On Mon, Mar 30, 2009 at 11:30, Chap Harrison wrote: snip > I've looked at the perldoc for Term::ReadLine and it's a little thin - > mainly because it describes itself as being only a front-end to a variety of > other packages. snip Yeah, you really need to look in Term::Readline::Gnu to find the

Re: Accepting terminal input with pre-loaded editable value

2009-03-30 Thread Chap Harrison
On Mar 30, 2009, at 9:29 AM, Chas. Owens wrote: #!/usr/bin/perl use strict; use warnings; use Term::ReadLine; my $term = Term::ReadLine->new($0); Thanks - it does exactly what I wanted. I've looked at the perldoc for Term::ReadLine and it's a little thin - mainly because it describes i

Re: Accepting terminal input with pre-loaded editable value

2009-03-30 Thread Chas. Owens
On Mon, Mar 30, 2009 at 00:42, Chap Harrison wrote: > This may be beyond the beginner level I don't know. > > I'd like to prompt the user to type in a City, State, and Zip in one line. >  It's free-form, in that it's just for display, but I can make a pretty > decent "suggestion"  based upon d

Re: Accepting terminal input with pre-loaded editable value

2009-03-30 Thread Chap Harrison
On Mar 30, 2009, at 6:31 AM, Rodrick Brown wrote: Sounds like something as basic as print "Question to ask: "; $value=; is what your looking for? No, I'm looking for a limited version of the editing capabilities that modern command line interfaces have; namely, the ability to "preload"

Re: Accepting terminal input with pre-loaded editable value

2009-03-30 Thread Rodrick Brown
On Mon, Mar 30, 2009 at 12:42 AM, Chap Harrison wrote: > This may be beyond the beginner level I don't know. > > I'd like to prompt the user to type in a City, State, and Zip in one line. >  It's free-form, in that it's just for display, but I can make a pretty > decent "suggestion"  based upo

Accepting terminal input with pre-loaded editable value

2009-03-29 Thread Chap Harrison
This may be beyond the beginner level I don't know. I'd like to prompt the user to type in a City, State, and Zip in one line. It's free-form, in that it's just for display, but I can make a pretty decent "suggestion" based upon data I've previously gathered. If I've gathered "IN-NewD