Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello,
I need the user to be able to enter a directory in my app. I would like to have the ability to use Tab Completion so that the user doesn't have to type in the whole string every time. For instance,

Please Enter a Dir: /et(user presses tab, program figures out to add a c and a /.)c/

Basically, I want my code to do what a typical bash shell would do for tab completion.

Any help is, as always, greatly appreciated.
-Tim-

Replies are listed 'Best First'.
Re: Directory Tab Completion
by valdez (Monsignor) on Aug 05, 2002 at 14:49 UTC

    Try with Term::Readline::Gnu. There are few Completion Functions that you can use.

    Ciao, Valerio