
davorg
Thaumaturge
/ Moderator
Jul 24, 2006, 9:12 AM
Post #8 of 8
(707 views)
|
|
Re: [perl] Use of uninitialized value in concatenation (.) or string at.......
[In reply to]
|
Can't Post
|
|
Yes, your using DBD::Pg and you havent loaded your module for that. And you query is mysql, so replace your connect strings with this. my $dbh = DBI->connect("DBI:mysql:$dbname:localhost", $dbuser, "5432", { RaiseError => 1 }) or die $DBI::errstr; Two points. 1/ You don't need to load DBD modules explicitly. DBI.pm will look at the connection string and load the correct one. 2/ How do you know that the "query is mysql". It looks to me as though it's just standard SQL and could be run against MySQL, PostgreSQL, Oracle, Access or pretty much any other relational database. If you know that you are guessing at solutions, then please be polite enough to mention that fact. Nothing that you have said addresses the actual error (the fact that a variable being used was undefined) and most of what you have said is inaccurate. All you have done is wasted the original poster's time. Please be more careful in the future. -- Dave Cross, Perl Hacker, Trainer and Writer http://www.dave.org.uk/ Get more help at Perl Monks
|