Make and test SQLite it working with Perl
Copy this code and paste it in your HTML
#!/usr/bin/perl
use DBI;
my $dbh = DBI
->connect('dbi:SQLite:dbname=test.sqlite','','',{AutoCommit
=>1,RaiseError
=>1,PrintError
=>0}); print "2+2=",$dbh->selectrow_array("SELECT 2+2"),"\n";
"if the answer is 2+2=4 all is working"
Report this snippet
Comments
Subscribe to comments