Hi all,
I'm having an issue connecting perl to mysql.
I was coding perl a while back and left it for a bit. Now that I've come back the code won't work as it doesn't see mysql.
When I use
use Mysql;
Which I used before, it see's it as an immediate error in my syntax.
I noticed that mysql.pm was located in these areas.
/usr/lib/perl5/Bundle/DBD/mysql.pm
/usr/lib/perl5/DBD/mysql.pm
So I tried
use DBD::mysql;
Which gave me no syntax errors.
Again no luck, this time a compilation error
Useless use of a variable in void context at script.pl line 48.
Name "Mysql::db_errstr" used only once: possible typo at KeywordDetection.pl line 38.
Content-type: text/html
Can't locate object method "connect" via package "Mysql" at script.pl line 31.
I'm using ubuntu Gutsy Gibbon if that helps.
Thanks in advance for any help.
I'm having an issue connecting perl to mysql.
I was coding perl a while back and left it for a bit. Now that I've come back the code won't work as it doesn't see mysql.
When I use
use Mysql;
Which I used before, it see's it as an immediate error in my syntax.
I noticed that mysql.pm was located in these areas.
/usr/lib/perl5/Bundle/DBD/mysql.pm
/usr/lib/perl5/DBD/mysql.pm
So I tried
use DBD::mysql;
Which gave me no syntax errors.
Again no luck, this time a compilation error
Useless use of a variable in void context at script.pl line 48.
Name "Mysql::db_errstr" used only once: possible typo at KeywordDetection.pl line 38.
Content-type: text/html
Can't locate object method "connect" via package "Mysql" at script.pl line 31.
I'm using ubuntu Gutsy Gibbon if that helps.
Thanks in advance for any help.