1Term::Completion::Path(U3s)er Contributed Perl DocumentatTieornm::Completion::Path(3)
2
3
4
6 Term::Completion::Path - read a path with completion like on a shell
7
9 use Term::Completion::Path;
10 my $tc = Term::Completion::Path->new(
11 prompt => "Enter path to your signature file: "
12 );
13 my $path = $tc->complete();
14 print "You entered: $path\n";
15
17 Term::Completion::Path is a derived class of Term::Complete. It prompts
18 the user to interactively enter a path with completion like on a shell.
19 The currently accessible file system is used to get the completion
20 choices.
21
22 See Term::Complete for details.
23
24 Configuration
25 Term::Completion::Path adds one additional configuration parameter,
26 namely "sep". This is the directory separator of the current operating
27 system.
28
30 Term::Completion, File::Spec
31
33 Marek Rouchal, <marekr@cpan.org<gt>
34
36 Please submit patches, bug reports and suggestions via the CPAN tracker
37 <http://rt.cpan.org>.
38
40 Copyright (C) 2009-2013 by Marek Rouchal
41
42 This library is free software; you can redistribute it and/or modify it
43 under the same terms as Perl itself, either Perl version 5.8.8 or, at
44 your option, any later version of Perl 5 you may have available.
45
46
47
48perl v5.32.1 2021-01-27 Term::Completion::Path(3)