in reply to Re^2: SQL Module Connection Help!
in thread SQL Module Connection Help!

At the top of your code put:

use strict; use warnings;

Test your code (without actually running it) with:

perl -c test.pl

That should highlight this and other problems.

If you are having problems understanding the error messages, you can get more detailed output by also adding this to the top of your code:

use diagnostics;

Your current problem relates to $dbh (in $dbh->prepare) being undefined. What you did define was $sql_dbh. You've also used $dbh elsewhere in your script. Choose which one you want to use and make appropriate changes.

-- Ken