Subroutine Name

WriteDB

Explanation and Usage

This subroutine writes the contents of a hash out to a named file.

Syntax

WriteDB(FileName, Hash)

Options

FileName - The file you are trying to retrieve, including the full path.

Hash - The hash variable you want written out. NOTE: Must be passed by reference (by pre-pending the hash variable with a backslash)

Examples

These are actual examples from the Aneuch source code:

WriteDB("$PageDir/$archive/$file", \%F);
In this example, which comes from the AppendPage sub, the database will be written out to $PageDir/$archive/$file, and the contents will be everything in the hash %F.

← Return to API listing