3. Example 3

#!/usr/bin/perl
# program name example3.pl
#stdin is standard input,it will be put into $number
print("enter a number: ");
$number = <STDIN>;
print("you enterred $number\n");