> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Fri, Feb 08, 2002 at 01:00:37PM -0600, Berger, Daniel wrote:
> > However, as soon as I try to step into the "someOtherSub()"
> sub, the program
> >
> > dumps me into the Oracle.pm module. I never even get to
> the first line of
> > "someOtherSub()". It dies *at* that line, at the moment I
> try and step into
> > it
> > with ptkdb.
> [snip]
> > # Dumps me here first...
> > # Oracle.pm, starting at line 66
> > END {
>
> This is correct behavior. The perl interpreter is exiting,
> so it is executing
> all END blocks at this point.
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.
>
> > 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.
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.
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.
Regards,
Mr. Sunblade