Want some programming help? [close]

Getting User Input with Perl

This example shows how to get information from the user using Standard Input (STDIN), which is typically the keyboard.

print "Hello. What is your name? ";
$name = <STDIN>;
print "Hello, " . $name;

Advertisement