Input from the user

Interaction between the program and the user, or with another program is an importang concept in programming. Whether the interaction is through user input or a config file isn't really important. To be useful for anything but learning, a program would need interaction. Sometimes the user interacts with the program only at startup, other times the user interacts with the program all the way until it exits the program. This article will focus on input at the start of the program.

#!/usr/bin/perl use strict; my ($infile, $outfile); $infile = $ARGV[0]; $outfile = $ARGV[1];

#!/usr/bin/perl use strict; my ($infile, $outfile); $infile = shift; $outfile = shift @ARGV;