in reply to What is safe to do in an END block?

I don't know where you got that idea that there's a limit. You can do as much as you want. END blocks are called *before* global destruction, so perl is a perfectly normal state.

That said, it's rather odd that you would have to use END blocks. You should find a destructor or Object::Destroyer more appropriate in many circumstances.

Replies are listed 'Best First'.
Re^2: What is safe to do in an END block?
by Cap'n Steve (Friar) on Jun 01, 2008 at 04:05 UTC

    I want to say I actually read that on this site, but like I said, I can't find it now.

    I don't have to use END, but I think that's a little more elegant than having a bunch of scripts that have to call the same method at the end.

    Thanks for the link to that module though, it looks interesting.