in reply to Re: output results from sql join
in thread output results from sql join

BUT there is another big one in your script: Your are not checking the return codes from the database calls.

And that's usally not needed IF you use RaiseError:

my $dbh=DBI->connect( $dsn, $user, $pass, { RaiseError => 1, PrintError => 0, AutoCommit => 1, } );

Any failing DBI method will automatically raise an error (i.e. die), no extra code required. See also DBI.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)