#The script gets user input from the STDIN (standard input) "file."
#STDIN normally comes from your keyboard.
#STDIN, STDOUT and STDERR are the pre-defined file handles.
#In scalar context, the command reads a single line of text from a file.
#In array context, the <STDIN> command would read in an entire file.
$lang = <STDIN>;
chomp($lang);
print $lang;
|