Work Sheet 2 for Perl
Do the following problems.
- Write a Perl Program that prompts user for a word and prints the length.
- Write a Perl program that prompts the user and prints backwards.
- What do the following Perl programs do?
while (<>) {
print $_;
}
print reverse <> ;
-
Do Problems 1 and 2 of Chapter 5.