I've been searching long and hard for documentation on the DBI:SQLite module, but googling has only found me debian mirrors and changelogs. CPAN has minimal documentation, and there's no manpage ( unless I'm just daft ). I've looked through the actual .pm file a bit, but I won't claim to follow most of it.
I am hoping to find some supported methods, syntax examples, etc.
Here's my problem:

my $sql = "SELECT * FROM test"; my $sth = $dbh->prepare($sql) || die "Couldn't prepare $sql: $sth->err +str"; + + while ( @row = $sth->fetchrow_array ) { print "@row\n"; }

which is basically about as simple as it gets and the standard DBI way of doing it.

I'm getting this error:

dbih_setup_fbav: invalid number of fields: 0, NUM_OF_FIELDS attribute probably not set right at ./test_sqlite.pl line 12.
I'm kind of at a loss. Your help, or even just a pointer to a set of 'thorougher' docs, would be most appreciated.
Thanks! -- cidaris

2003-06-04 edit ybiC: s/pre/code/


In reply to SQLite Documentation by cidaris

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.