in reply to callback function params
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: callback function params
by azadian (Sexton) on May 26, 2024 at 14:14 UTC | |
by soonix (Chancellor) on May 26, 2024 at 21:11 UTC | |
by azadian (Sexton) on May 27, 2024 at 17:32 UTC | |
by Fletch (Bishop) on May 28, 2024 at 11:11 UTC |