-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, Feb 08, 2002 at 02:20:21PM -0600, Berger, Daniel wrote:
> I understand that.  What I don't understand is why it's dumping there in the
> first place if I've already successfully closed (i.e. disconnected) the (one
> and only) database handle.  The sub call is 2 lines down the program,
> *after* the disconnect.  I double checked $dbh - it was definitely undef by
> the time I got to the call that crashed the program.

END blocks run regardless, whenever the interpreter exits.  It has nothing to do 
with the database handle or any other variable.  It's designed for modules and 
programs to do final cleanup.

> > > Bareword found where operator expected at (eval 16) line 8, 
> > near "00351
> > > DBI"
> > 
> > The real problem appears to be a syntax error somewhere in 
> > your script.
> 
> No, if that were the case, the program wouldn't even start, now would it?
> If you mean a logic error, I couldn't see it and the fact that the debugger
> couldn't even step into LINE 1 of the sub seems to counter this.

I realized that a few minutes after I posted but you beat me to a response :)  
It looks like the debugger is scribbling on something before handing it to perl.  
Have you tried just running it from the command line?

> Also note that the command line junk appears is only generated when run
> through ptkdb.  Occasionally, ptkdb will even drop me into Tk.pm, but that
> didn't appear to be happening here.

That probably confirms the above hunch.

> The main concern for me here is what I mentioned above - that I dumped into
> an END block for Oracle.pm and DBI.pm when I clearly should have been way
> past any END block for either module.

I think you're confusing END with DESTROY.  `perldoc perlmod`.

- -- 
Stephen Clouse <[EMAIL PROTECTED]>
Senior Programmer, IQ Coordinator Project Lead
The IQ Group, Inc. <http://www.theiqgroup.com/>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjxkNNYACgkQA4aoazQ9p2fDPACg8/HZxhz+WkFPMEP8XEFtKg7C
DSQAoJaVDevnQZgx+ZbPz2js+vc3Oogw
=uw8z
-----END PGP SIGNATURE-----

Reply via email to