title: Perl And Sqlite
body: <p>Can someone tell me how to access a sqlite3 database from perl. </p>
  
  <p>the code </p>
  
  <pre><code>use DBI;
  use DBD::SQLite;
  
  my $dbh = DBI-&gt;connect(
    "dbi:SQLite:dbname=/cbilldata/media/database/collector.db","",""
  ) or die "Cannot connect: $DBI::errstr";
  </code></pre>
  
  <p>returns error</p>
  
  <blockquote>
    <p>DBI connect('dbname=/cbilldata/media/database/collector.db','',...) failed: database disk image is malformed at ./db.pl line 7<br>
    Cannot connect: database disk image is malformed at ./db.pl line 7.</p>
  </blockquote>