This happens to me pretty often. I get the "BEGIN not safe after errors--compilation aborted at..." message but there are no errors listed. I'd post the code, but it's 1913 lines long. What I've done in the past is comment out entire sections of code until it compiles, then release lines until it doesn't - to find the errant lines. As you can imagine this is a long and mind-numbingly difficult process.
Question is, Is there somewhere that Carp does/can log it's issues? -or- is there a line limit to Perl?