If you still can, consider using DBI together with DBD::SQLite instead. It is more commonly used and does not tie your application to SQLite.
Looking at the documentation of DB::SQLite, it seems that you are supposed to give it a callback like the following:
$db->select( $sql, sub { my ($sth) = @_; use Data::Dumper; print "I received the following statement handle: "; print Dumper $sth->fetchall_arrayref; });
Update: Fixed syntax errors in code
In reply to Re: callback function params
by Corion
in thread callback function params
by azadian
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |