On 12/12/09 Sat  Dec 12, 2009  12:26 PM, "Grant" <emailgr...@gmail.com>
scribbled:

> I have a perl script which creates a PDF file from data in a table.
> This morning I was making some modifications to it, and it stopped
> working with a "Couldn't get mydata handle" error.  I restored the
> original file, but it still fails with that error, even after
> rebooting the machine.  Here is the pertinent code:
> 
> my $dbh = $Sql{mydata} or die "Couldn't get mydata handle\n";
> 
> The table "mydata" is still being read and written to just fine.  Does
> anyone know what causes a line like the above to fail?  I'm very
> confused because I restored the original file which was working before
> I started modifying it.

Then the problem is probably not your program, but rather something has
happened to your database connection.

Write a small program that does nothing but connect to your database and
read from the table. If that works, then maybe you can track down the
difference between that program and your real one. If not, then start
looking at the database connection.



-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to