Chapter 2 Lab

1. What is the significance of the special variable $_?

2. Write a program to echo its command line arguments.  SOLUTION: args.pl

3. What would happen in the program dgrep.pl if we used the automatically set special variable $_ in each of the foreach loops instead of the explicit variables $word and $filename?

4. Modify the program menu.pl so that it will prompt the user for a command and then execute as a command whatever line the user types in.  SOLUTION: cmd.pl
