in reply to Prototypes being ignored with use_ok() from Test:More ?

BEGIN { use_ok( ... ) } uses a BEGIN block. BEGIN:{ use_ok( ... ) } uses "BEGIN" as a useless label. Drop the colon.

Or just stop using use_ok(). I see no value in it.

- tye        

Replies are listed 'Best First'.
Re^2: Prototypes being ignored with use_ok() from Test:More ? (colon)
by JPMH (Novice) on Nov 13, 2012 at 21:05 UTC
    Bingo! Thank you very much. I hadn't noticed the pesky colon, nor realised it would make so much difference.