Posted By

jacklnorthrup on 05/24/16


Tagged

test perl SQLite


Versions (?)

Make and test SQLite it working with Perl


 / Published in: Perl
 

  1. #!/usr/bin/perl
  2. use DBI;
  3. my $dbh = DBI->connect('dbi:SQLite:dbname=test.sqlite','','',{AutoCommit=>1,RaiseError=>1,PrintError=>0});
  4. print "2+2=",$dbh->selectrow_array("SELECT 2+2"),"\n";
  5.  
  6.  
  7. "if the answer is 2+2=4 all is working"

Report this snippet  

You need to login to post a comment.