Joined: June 2006
||Posted: May 15 2007,01:32
|Quote (roberts @ Mar. 23 2004,21:04)|
|Also note that Sqlite Book was written by our very own, John.|
It is amazing
Hey Roberts, is "John" still around?
I'm trying to access SQLite using Perl but cannot for the life of me find out how to connect to the database using IO::Socket (like John did.) All the info I have found (even on sqlite.org) for connecting to databases uses something like the DBI module all of which are not included with DSL.
Your PHP examples are great - but using PHP is not really an option for me on this project.
I am pretty much just looking for the section of code that John used to create the Socket handle - something like this:
|Code Sample |
| $sock = IO::Socket::INET->new(|
LocalAddr => 'localhost',
LocalPort => 9000,
Proto => 'tcp');
But any additional help would be greatly appreciated, as well.
I've spent almost the entire last two days searching for further info and trying other options. I have searched every Google combination I can think of and cannot find anyone else who has used IO::Socket with SQLite - everyone uses DBI.
I have also spent much time trying to install the DBI module into DSL...alas, despite reading much of the Wiki, searching this forum, and scouring the Debian and KNOPPIX sites I have not found a combination of install steps that will work.
If anyone has been able to use Perl 5.8.0 to connect with SQLite or has successfully imported Perl modules into DSL, I would be ever appreciative of some help.