# prompt for and read First and Last name, then print a welcome messag +e. print "\nWhat is your first name? "; my $first = <>; print "\nWhat is your last name? "; my $last = <>; chomp $first; # strip the newline from the first name print "Welcome $first $last";
In reply to Basic I/O #1
by vroom
in thread Basic I/O Exercises
by vroom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |