Mery84 has asked for the wisdom of the Perl Monks concerning the following question:
As a reply to this question user need to specify full file path e.g. /opt/databases/demo/file.abc I`m looking for some way to have interactive shell just like in linux shell - is there any way to have autoexpanded paths after tab pressing?print "Podaj sciezke do pliku bazy, ktory archiwizujemy: "; chomp( $question2 = <STDIN> );
$| = 1; use Term::ReadLine; my $Term = new Term::ReadLine 'Installer'; my $file = $Term->readline('Enter a file path: '); print "$file = '$file'n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Active STDIN for user typed filepath
by temporal (Pilgrim) on Mar 29, 2012 at 15:49 UTC | |
Re: Active STDIN for user typed filepath
by Anonymous Monk on Mar 29, 2012 at 19:10 UTC | |
Re: Active STDIN for user typed filepath
by furry_marmot (Pilgrim) on Mar 30, 2012 at 06:11 UTC | |
Re: Active STDIN for user typed filepath
by Anonymous Monk on Mar 30, 2012 at 01:49 UTC |