2.25. export

Exports a database to a delimited text file (see also import).

2.25.1. Summary

Parameters: table

Positional parameters in same order.

  my %Delimiter = (
        2 => ["\n", "\n\n"],
        3 => ["\n%%\n", "\n%%%\n"],
        4 => ["CSV","\n"],
        5 => ['|', "\n"],
        6 => ["\t", "\n"],
        7 => ["\t", "\n"],
        8 => ["\t", "\n"],
        LINE => ["\n", "\n\n"],
        '%%%' => ["\n%%\n", "\n%%%\n"],
        '%%' => ["\n%%\n", "\n%%%\n"],
        CSV => ["CSV","\n"],
        PIPE => ['|', "\n"],
        TAB => ["\t", "\n"],
        );

The attribute hash reference is passed to the subroutine after the parameters as the last argument. This may mean that there are parameters not shown here.

Must pass named parameter interpolate=1 to cause interpolation.

Invalidates cache: YES

Called Routine:

ASP-like Perl call:

    $Tag->export(
        {
         table => VALUE,
        }
    )

 OR

    $Tag->export($table, $ATTRHASH);

Attribute aliases

            base ==> table
            database ==> table

2.25.2. Description

Exports 'table' to a delimited text file. See also import tag which imports files into databases.