in reply to Error with DBI and Strawberry Perl under 64 bit W7
I've got nothing to say about your problem (as I have't programmed in Windows 7, nor do I use Strawberry perl). I just have a couple random notes:
So, I would have written it something like this:
my $SQL = q{SELECT SongTitle, SongPath FROM Songs WHERE }; $SQL .= join('OR', map { '(Songs.Artist LIKE ?)' } @inc_artists); my $DBO = DBI->connect("dbi:SQLite:$mediaMonkeyPath", "", "") or die "Couldn't connect to MediaMonkey - $DBI::errstr\n"; my $STO = $DBI->prepare($SQL); my $results = $STO->execute( map { "\%$_\%" } @inc_artists);
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Error with DBI and Strawberry Perl under 64 bit W7
by Mad_Mac (Beadle) on Mar 12, 2011 at 06:44 UTC | |
by roboticus (Chancellor) on Mar 12, 2011 at 22:09 UTC | |
by Mad_Mac (Beadle) on Mar 13, 2011 at 17:33 UTC |