A program that reads an entire input file into an array. To do that you need to tell Perl, you are opening the file with UTF-8 encoding. Perl automatically closes file once the variable is out of scope. Terminating a Program Using die In Listing 6.
This means that when a program terminates, the message printed by die always appears on your screen, even when you have redirected output to a file. When called with a reference to an array of replacement values, returns the object itself.
It opens the file in read mode. This means that die is called only if open returns false if the open operation fails. Inserting records that contain the record separator string is not supported by this module. The loop terminates only when both files have been exhausted.
In particular, note that file locking in Perl is advisory, which means that holding a lock will not prevent anyone else from reading, writing, or erasing the file; it only prevents them from getting another lock at the same time.
It will read the next line from the file. You can redirect the standard output file on the command line. Useful in debugger when we often don't want to see more than enough.
See Configuration Variables or Methods below for details.