ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/dinfo/eg/example2
Revision: 1.1
Committed: Sat Sep 20 14:36:18 2003 UTC (22 years, 11 months ago) by root
Branch: MAIN
CVS Tags: HEAD
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 #!/usr/bin/perl
2    
3     use dinfo;
4    
5     my $dinfo = new dinfo "DBI:mysql:dinfo";
6    
7     my $r = $dinfo->search (name => prefix => "Lehman",
8     vorname => like => "%arc%",
9     plz => exact => 76133);
10     print "results: " . $r->rows . "\n";
11     chomp;
12     while (my $row = $r->fetch) {
13     while (my ($k, $v) = each %$row) {
14     print "$k:$v ";
15     }
16     print "\n";
17     }
18