readline $term->readline(prompt) Prompts for input line and gets the result. Removes trailing newline and returns undef at end-of-file.