in reply to Use of uninitialized value...

Your problem is likely in this section of code:

my $res = $dbh->selectall_arrayref( q( SELECT Artist, Title, Album + FROM Pandora)); foreach( @$res ) { print "\n$_->[0], $_->[1] $_->[2] $_->[3]\n\n"; }

You're selecting 3 columns from the table, but are trying to print out 4.

- Miller

Replies are listed 'Best First'.
Re^2: Use of uninitialized value...
by cmd.line.geek (Initiate) on Feb 08, 2011 at 02:09 UTC
    Thanks a lot. That took care of the error. Though the script isn't doing what I thought it was supposed to.