Term::Complete(3pm)

🌸 NAME 🌸

okay so bestie, this is Term::Complete(3pm) β€” yes, from the Perl Programmers Reference Guide, periodt β€” and its official NAME vibe is literally Perl word completion module. That's the whole main character energy: it does word completion for you. πŸ’–βœ¨

✨ SYNOPSIS ✨

Two ways to call it, bestie:

$input = Complete('prompt_string', \@completion_list);
$input = Complete('prompt_string', @completion_list);

πŸ’… DESCRIPTION πŸ’…

okay so this routine provides word completion on the list of words in the array (or array ref). 🫢

The tty driver is put into raw mode and restored using an operating system specific command; in UNIX-like environments that command is stty. 🌈

The following command characters are defined:

  • <tab> β€” attempts word completion. Cannot be changed. πŸ’€
  • ^D β€” prints the completion list. Defined by $Term::Complete::complete. πŸ“‹
  • ^U β€” erases the current input. Defined by $Term::Complete::kill. 🧹
  • <del>, <bs> β€” erases one character. Defined by $Term::Complete::erase1 and $Term::Complete::erase2. βœ‚οΈ

🚨 DIAGNOSTICS 🚨

The bell sounds when word completion fails. πŸ””πŸ˜­

😭 BUGS 😭

The completion character <tab> cannot be changed. No cap, that's the bug note. πŸ’€

πŸ‘‘ AUTHOR πŸ‘‘

Wayne Thompson. πŸ‘‘βœ¨


🌈 cute little sign-off: this page is Term::Complete(3pm) from perl v5.42.3, dated 2026-11-03. Bye bestie, go complete some words πŸ’…πŸŽ€
πŸ“¦ where this page comes from