Perl Programming/Filehandles

= Reading files =

By slurping file
This method will read the whole file into an array. It will split on the special variable $/

By line processing
This method will read the file one line at a time. This will keep memory usage down, but the program will have to poll the input stream on each iteration.

Object-oriented interface
Using IO::File, you can get a more modern object-oriented interface to a Perl file handle.