ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/dinfo/eg/example1
Revision: 1.1
Committed: Sat Sep 20 14:36:18 2003 UTC (23 years 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 (nummer => exact => 7199, vorwahl => exact => "07066");
8     print "results: " . $r->rows . "\n";
9     chomp;
10     while (my $row = $r->fetch) {
11     while (my ($k, $v) = each %$row) {
12     print "$k:$v ";
13     }
14     print "\n";
15     }
16