You might want to check the value of $dbh->errstr after each use of connect, prepare and execute. It's happened to me on more than one occation on Win9x that an SQL error will cause a crash if you try and use an invalid(ated) handle.
rdfield
Comment on Re: ActivePerl is crashing when running a script!