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-NewDurhamTwpMetro66765", I can convert it to "New Durham Twp Metro, IN 66765", which I"d like to pre-load the input area with when I prompt for City, State, and Zip. I'd like the user to have full readline capability, so he can forward-cursor up to Twp, and change it to Township (for example).

I looked at Term::Readline::Gnu in CPAN and it's wa-a-ay over my head. Is there a simpler way, perhaps built into Perl, to prompt for terminal input and provide a preloaded string that can be edited?

Thanks,
Chap


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to