Beginning Perl pp 179-206 | Cite as

Files and Data


We’re starting to write real programs now, and real programs need to be able to read and write files from and to your hard drive. At the moment, all we can do is ask the user for input using 〈STDIN〉 and print data on the screen using print(). Pretty simple stuff, yes—but these two ideas actually form the basis of a great deal of the file handling you’ll do in Perl.


Line Number Command Line Text Read Angle Bracket Standard Output 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© James Lee 2010

Personalised recommendations