in reply to use equivalent ? I suspect not...

Consider the trivial example of module:
package Test1;
Your trivial example is missing "use warnings;". Use warnings, perhaps especially in trivial examples:
$ cat Foo.pm use warnings; CHECK { print "in check\n" } INIT { print "in init\n" } 1; $ perl -e'require Foo' Too late to run CHECK block at Foo.pm line 2. Too late to run INIT block at Foo.pm line 3. $ perl -e'use diagnostics; require Foo' Too late to run CHECK block at Foo.pm line 2 (#1) (W void) A CHECK or INIT block is being defined during run time pr +oper, when the opportunity to run them has already passed. Perhaps you +are loading a file with require or do when you should be using use instead. Or perhaps you should put the require or do inside a BEGIN block. Too late to run INIT block at Foo.pm line 3 (#1)

Replies are listed 'Best First'.
Re^2: use equivalent ? I suspect not...
by Bloodnok (Vicar) on Aug 08, 2008 at 09:44 UTC
    Yep, you're dead right, guilty as charged;-)

    I do 'normally' use both strict and warnings - not quite sure how this got thro' the net.

    It might even have saved my question - or at least, when asked, my question would have had a far narrower focus.

    A user level that continues to overstate my experience :-))