steve_s741 has asked for the wisdom of the Perl Monks concerning the following question:
And the output:use DBI; use Net::MySQL; my $mysql = Net::MySQL->new( hostname => '127.0.0.1:8889', # Default use UNIX socket database => 'inventory', user => 'root', password => 'root' ); $mysql->query(q{select * from orders}); if ($mysql->has_selected_record) { print "found in DB...\n"; }
A lot of people seem to suggest using DBD::mysql instead. I have used DBD::mysql n other platforms but getting it to work on Mac OS-X has proven to be beyond me. I read a post somewhere suggesting to try net::mysql and that's how I ended up in this rabbit hole. Is this module supported or is it a dead end?bash-3.2$ perl -T test.pl found in DB...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: net::mysql has_selected_record always returns true
by thomas895 (Deacon) on Mar 17, 2013 at 18:23 UTC | |
|
Re: net::mysql has_selected_record always returns true
by igelkott (Priest) on Mar 17, 2013 at 20:43 UTC | |
|
Re: net::mysql has_selected_record always returns true
by Laurent_R (Canon) on Mar 17, 2013 at 16:41 UTC | |
by steve_s741 (Initiate) on Mar 18, 2013 at 12:26 UTC |