PERL Files Input and Output
Tutorials Shared by the Internet Community
Total Hits - 15854
Total Votes - 98 votes
Vote Up - 42 votes
Vote Down - 56 votes
Domain - www.tutorialspoint.com
Category - Perl & CGI/File Handling
Submitted By - Devesh Khanna
Submitted on - 2008-03-16 00:25:56
The basics of handling files are simple: you associate a filehandle with an external entity (usually a file) and then use a variety of operators and functions within Perl to read and update the data stored within the data stream associated with the filehandle.
A filehandle is a named internal Perl structure that associates a physical file with a name. All filehandles are capable of read/write access, so you can read from and update any file or device associated with a filehandle. However, when you associate a filehandle, you can specify the mode in which the filehandle is opened. ...