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::erase1 and $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