[ABE.pm] Prompting users

Walt Mankowski waltman at pobox.com
Fri Oct 5 10:28:20 PDT 2007


On Fri, Oct 05, 2007 at 01:19:02PM -0400, Faber J. Fedor wrote:
> 
> What's the best way to prompt for user input a la CPAN?  
> Use $name = <STDIN>?

You know, the cool thing about open source is if you want to do
something like have input work the way it does in CPAN.pm, you can
just look in CPAN.pm and see how it does its magic. :)

It appears to use Term::ReadLine (or maybe one of its subclasses; it's
a bit complicated).  Just search for "sub shell" to see how it works.

Walt


More information about the ABE-pm mailing list