Input and Output
We'll finish up today with two topics that initially might not seem to fit with everything else we've talked about concerning scalar data: handling simple input and output. I've included them here essentially for one reason: so you know what's been going on in the scripts you've been writing that read input from the keyboard and print output to the screen.
In this section we'll talk about simple input and output, and as the book progresses you'll learn more about input and output to disk files, culminating on Day 15, “Working with Files and I/O.”
File Handles and Standard Input and Output
First, some terminology. In the scripts you've been looking at today and yesterday, you've used Perl code to read input from the keyboard and ...