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
Advertisement
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
Advertisement