
miniCruzer
Novice
Oct 10, 2010, 1:29 PM
Post #1 of 2
(4581 views)
|
SQLite 'SELECT' Function
|
Can't Post
|
|
I've recently been playing with SQLite, and so far I can get this program to write to the database, but it can't read it right. I've done some Googling, and there've been no solutions so far. This should be a fairly simple solution:
sub dbread { my $all = $db->selectall_arrayref("SELECT * FROM CHANNELS;"); foreach (@$all) { print "$_\n"; } The table channels would read like this: and so on. It returns no errors, but won't return the channel name, instead it prints out:
ARRAY(0x9092080) ARRAY(0x90920b0) ARRAY(0x90920e0)
|