MC logo

Passing Through @ARGV (Answer)

  Practice Problems

  1. while($itm = shift @ARGV) {
        print "$itm.\n";
    Just prints the command line arguments, one per line.
  2. while($itm = pop @ARGV) {
        print "$itm.\n";
    Prints the command line arguments, one per line, backwards.

<<Identifiers Question Patterns I>>