Term::Complete(3perl)
π NAME π
Term::Complete β the Perl word completion module, bestie. it's giving tab-completion but make it yours π
β¨ SYNOPSIS β¨
$input = Complete('prompt_string', \@completion_list);
$input = Complete('prompt_string', @completion_list);
πΈ DESCRIPTION πΈ
okay so here's the vibe: this routine hands you word completion over the list of words living in an array (or an array ref, whichever you're feeling π¦).
It throws the tty driver into raw mode, then restores it after using an operating-system-specific command β and in UNIX-like environments that command is literally stty π
These command characters are the whole personality of this module:
<tab>β tries to complete your word. no cap, you cannot change this one. it's locked in. π^Dβ prints the completion list. this one's defined by$Term::Complete::complete. π^Uβ erases whatever you've currently typed. defined by$Term::Complete::kill. bye bye input π<del>,<bs>β erases exactly one character. defined by$Term::Complete::erase1and$Term::Complete::erase2. one (1) character, no more π
π DIAGNOSTICS π
when word completion fails, the terminal hits you with a bell π. that's the whole notification system. it's giving "nope, not today."
π BUGS π
the completion character <tab> cannot be changed. periodt. that's not a suggestion, that's just how it is π«Ά
β AUTHOR β
Wayne Thompson β the icon, the moment, the legend π
and that's the whole page, bestie!! this lovely little manpage shipped with perl v5.44.0 on 2026-10-17, and it's part of the Perl Programmers Reference Guide. go forth and complete some words πβ¨
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms