in reply to Multi-Line Input

Try this code.
#!/usr/bin/perl use strict; use warnings; print "Enter your guess: "; my @input = <STDIN>; print "@input\n";
Use Ctrl+D to terminate the input.