in reply to Debugging failed "use" statement.

Yes I'm sure there's no __END__ or exit(0); statements.

Sorry I can't post the code. I'm not allowed to.

One thing I have found is that if I remove a particular method, I don't get the error. However, on going through that method line by line, the error drops on removal of 5 lines of commented code. That seems really bizarre.

I have a feeling it's POD related, but the module passes POD::Checker just fine.

Maybe if I strip all the POD out and then see if it works I'll get more info. 'tis a strange one for not throwing an error, I must say.

D'OH. Forget it. It was a legacy module with the damn use Switch statement in it. Heh - that was my last question 2 months ago. Damn memory... serves me right for merging back into the trunk on an empty head :)

Thanks all for the quick replies - I have a feeling my evening will flow a lot better now :)