in reply to Problem with SQLite connection

The first message is from connect failing. Since connect returns undef on failure, Perl gives the second message and dies when it tries to call the execute method of undef. You should either check the return value of connect or set the RaiseError option to 1.

So why does connect fail? The error message indicates SQLite doesn't recognize the format of prova.db.