in reply to
Perl $dbh->prepare failed
just a guess..your database handle is out of scope when you're in the second script. you'll need to pass the handle to the second script..by reference.
the hardest line to type correctly is: stty erase ^H
Comment on
Re: Perl $dbh->prepare failed
Replies are listed 'Best First'.
Re^2: Perl $dbh->prepare failed
by
thil
(Sexton)
on Sep 12, 2006 at 12:27 UTC
The database handler is again created in the second script. The connection is alive till the error occurs.
[reply]
In Section
Seekers of Perl Wisdom