CGI and Perl File Manipulation
Working with Files
This tutorial shows you how to create files and write to them, how to read them, how to delete them, and how to scan directories on your server. It also covers permissions and full paths, and includes a handy script for working out full paths. It also touches on loops, lists, and appending strings to variables. A lengthy tutorial but well worth reading!
PERL Files & I/O
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.
Perl Tutorials - Input and Output in Binary Mode
This tutorial describes:
* How to open files for input in binary mode.
* How to open files for output in binary mode.
* Example program to copy binary files
* Example program to convert binary data to hex numbers.
Handling file uploading from www forms with CGI.pm
This tutorial shows how to handle file uploads from web forms in your CGI programs using Perl and CGI.pm.
Perl 101 (Part 4) - Mind Games
This article teaches you how to use Perl to interact with files on your system, and also provides you with a quick crash course in various array functions.
Using a flat-file database in Perl
Web developers often need ways of speeding up the development process, without spending thousands of dollars for software. Here's how to build an easy to use database in Perl and access it via a Web page.
