Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    print "SECOND Connection with dbfile read from file $dbfile2 ... ";
    $dbh = DBI->connect("dbi:SQLite:dbname=$dbfile2","","")|| die $DBI::er
    +rstr;
    print "done!\n";
    
  2. or download this
    FIRST Connection to dbfile path read from script (C:/users/DON/Desktop
    +/data.db) ... done!
    
    Reading dbfile path from configuration file... C:/users/DON/Desktop/da
    +ta.db
    Can't connect to data source 'dbi:SQLite:dbname=C:/users/DON/Desktop/d
    +ata.db' because I can't work out what driver to use (it doesn't seem 
    +to contain a 'dbi:driver:' prefix and the DBI_DRIVER env var is not s
    +et) at script/myscript.pl line 22.
    SECOND Connection with dbfile read from file C:/users/DON/Desktop/data
    +.db ...