1AnyData::Format::Pipe(3U)ser Contributed Perl DocumentatiAonnyData::Format::Pipe(3)
2
3
4

NAME

6       AnyData::Format::Pipe - tiedhash & DBI/SQL access to Pipe delimited
7       files
8

SYNOPSIS

10        use AnyData;
11        my $table = adHash( 'Pipe', $filename,'r',$flags );
12        while (my $row = each %$table) {
13            print $row->{name},"\n" if $row->{country} =~ /us|mx|ca/;
14        }
15        # ... other tied hash operations
16
17        OR
18
19         use DBI
20        my $dbh = DBI->connect('dbi:AnyData:');
21        $dbh->func('table1','Pipe', $filename,$flags,'ad_catalog');
22        my $hits = $dbh->selectall_arrayref( qq{
23            SELECT name FROM table1 WHERE country = 'us'
24        });
25        # ... other DBI/SQL operations
26

DESCRIPTION

28       This is a plug-in format parser for the AnyData and DBD::AnyData
29       modules. It will read column names from the first row of the file, or
30       accept names passed by the user.  In addition to column names, the user
31       may set other options as follows:
32
33         col_names   : a pipe separated list of column names
34
35       If you are using this with DBD::AnyData, put ad_ in front of the flags,
36       e.g.  ad_eol.
37
38       Please refer to the documentation for AnyData.pm and DBD::AnyData.pm
39       for further details.
40
42       copyright 2000, Jeff Zucker <jeff@vpservices.com> all rights reserved
43
44
45
46perl v5.30.0                      2019-07-26          AnyData::Format::Pipe(3)
Impressum