1AnyData::Format::Ini(3)User Contributed Perl DocumentatioAnnyData::Format::Ini(3)
2
3
4
6 AnyData::Format::Ini - tiedhash & DBI/SQL access to ini files
7
9 use AnyData;
10 my $table = adHash( 'Ini', $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','Init', $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
27 This is a parser for simple name=value style Ini files. Soon it will
28 also handle files with sections.
29
30 Please refer to the documentation for AnyData.pm and DBD::AnyData.pm
31 for further details.
32
34 copyright 2000, Jeff Zucker <jeff@vpservices.com> all rights reserved
35
36
37
38perl v5.32.0 2020-07-28 AnyData::Format::Ini(3)