See perldebug, particularly the section labeled Debugging compile-time statements.
TGI says moo
In reply to Re: debug at compile time by TGI in thread debug at compile time by Anonymous Monk