1AnyData::Format::CSV(3)User Contributed Perl DocumentatioAnnyData::Format::CSV(3)
2
3
4

NAME

6        AnyData::Format::CSV - tiedhash & DBI/SQL access to CSV data
7

SYNOPSIS

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

DESCRIPTION

27       This is a plug-in format parser for the AnyData and DBD::AnyData
28       modules. It will read column names from the first row of the file, or
29       accept names passed by the user.  In addition to column names, the user
30       may set other options as follows:
31
32         col_names   : a comma separated list of column names
33         eol         : the end of record mark, \n by default
34         quote_char  : the character used to quote fields " by default
35         escape_char : the character used to escape the quote char, " by default
36
37       If you are using this with DBD::AnyData, put ad_ in front of the flags,
38       e.g.  ad_eol.
39
40       Please refer to the documentation for AnyData.pm and DBD::AnyData.pm
41       for further details.
42
44       copyright 2000, Jeff Zucker <jeff@vpservices.com> all rights reserved
45
46
47
48perl v5.36.0                      2022-07-22           AnyData::Format::CSV(3)
Impressum