in reply to Tests in a module/package?

Apparently, I should have put 'use warnings' in a BEGIN block

Well now. You know that warnings is lexically scoped? It would be confined to the BEGIN block, then.

Replies are listed 'Best First'.
Re^2: Tests in a module/package?
by pileofrogs (Priest) on Mar 12, 2009 at 00:47 UTC

    Woah.. is there any way to turn on warnings for compile inside of a module?

      Of course:

      package Module; use warnings;

      ;-)