Re: How do I know if I'm in a BEGIN block?
Oct 29, 2009 at 10:54 UTC
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'
Seekers of Perl Wisdom