Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    Animal1:       dog
    Animal2: cat
    User Said: dog cat
    
  2. or download this
    my $dbh = DBI->connect("dbi:SQLite:dbname=$dbfile","","",{RaiseError =
    +> 1})
        or die "Couldn't connect to database: " . DBI->errstr;
    
  3. or download this
    #code could look like this (untested):
    my $aref = $sth->fetchall_arrayref();
    ...
    {
       print "\t$cptanswer\t$insid\t$preauth\t$updated\n";
    }
    
  4. or download this
    while (@data = $sth->fetchrow_array()) {
                    my $cptanswer = $data[1];
    ...
                    my $updated = $data[5];
                    print "\t$cptanswer\t$insid\t$preauth\t$updated\n";
            }