Work Sheet 2 for Perl

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

    print reverse <> ;
    
  4. Do Problems 1 and 2 of Chapter 5.