Redirection by the user
In order to read a real file we have to wait for a later chapter or you can ask the user of the script to use redirection on the command line. The user of out program might do the following to redirect the input and/or the output of our program. myperl.pl < in.txt myperl.pl > out.txt myperl.pl < in.txt > out.txt