http://www.perlmonks.org?node_id=803926


in reply to How do I know if I'm in a BEGIN block?

You could use caller() to see if one of the functions in the call chain is called 'BEGIN'

Dave.

  • Comment on Re: How do I know if I'm in a BEGIN block?