in reply to Re^2: Can't connect to data source 'DBI:SQLite:\C:\Users\DON\Desktop\data.db
in thread pp concatenate path
Besides noticing that open my $FH, "<:encoding(UTF-8)", $FileInput || die (print "can't open file $dbfile2"); should probably be open my $FH, "<:encoding(UTF-8)", $FileInput || die (print "can't open file $FileInput");
i wonder what adding
would output. seeing "<:encoding(UTF-8)" makes me wonder even more as dbfile2 will be marked as UTF characters rather than bytesif ($dbfile1 eq $dbfile2){ print "same\n";} else {print "different\n";}
Edit: and that means the first parm to the second connect will be marked as UTF as well to doesnt it? Maybe you should try creating both "dbi:SQLite:dbname=$..." strings outside the connect call and compare them as well.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Can't connect to data source 'DBI:SQLite:\C:\Users\DON\Desktop\data.db
by Anonymous Monk on Apr 21, 2018 at 08:25 UTC | |
by huck (Prior) on Apr 21, 2018 at 08:28 UTC | |
by Anonymous Monk on Apr 21, 2018 at 23:23 UTC | |
|
Re^4: Can't connect to data source 'DBI:SQLite:\C:\Users\DON\Desktop\data.db
by Anonymous Monk on Apr 21, 2018 at 07:51 UTC | |
by Anonymous Monk on Apr 23, 2018 at 07:24 UTC | |
|
Re^4: Can't connect to data source 'DBI:SQLite:\C:\Users\DON\Desktop\data.db
by Anonymous Monk on Apr 21, 2018 at 07:25 UTC |