in reply to Signals and END block

Rather than having your program clean up after itself, how about have the database clean up after your program. Transactions are your friend. If you don't COMMIT your data, then when your connection to the db goes away, the changes should be thrown away.

Replies are listed 'Best First'.
Re^2: Signals and END block
by monkey_boy (Priest) on Aug 05, 2004 at 12:43 UTC
    I love this solution, i would have never thought of it myself, this is why perl monks is so fantastic, Cheers!
    I should really do something about this apathy ... but i just cant be bothered
Re^2: Signals and END block
by Marcello (Hermit) on Aug 05, 2004 at 18:12 UTC
    Good solution, but only if you use the same database connection to query the table. I have other processes scanning the database table, and then this record never appears until it is COMMIT'ed.

    Cheers