Documentation for sub prompt

Documentation for sub prompt, assembled from the following types:

role IO

From IO

(IO) sub prompt

sub prompt($msg)

Prints $msg to standard output and waits for the user to type something and finish with an ENTER. Returns the string typed in without the trailing newline.

my $name = prompt("Hi, what's your name? ");