in reply to Exiting takes a looong time

Are you doing anything else in your script? Are you sure that the delay is happening after the exit()? The only thing I can think that might cause a delay is writing to a filehandle. Exitting closes the filehandles and tries to flush the buffer. If the filehandle blocks, then the close might hang.

Replies are listed 'Best First'.
Re: Re: Exiting takes a looong time
by Anonymous Monk on Nov 19, 2002 at 20:08 UTC
    I went throught it with the debugger, and tried exiting at different points, and the delay only occurred after the data was in memory. Also, in the debugger, I run  $data = undef, and that gave me the delay too.

    And, yes, I do need that data in memory. I have to perform various manipulations and calculate statistics on the data which means I can't just process it one row at a time.