Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Prototypes being ignored with use_ok() from Test:More ? (colon)

by tye (Cardinal)
on Nov 13, 2012 at 16:52 UTC ( #1003662=note: print w/ replies, xml ) Need Help??


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        


Comment on Re: Prototypes being ignored with use_ok() from Test:More ? (colon)
Select or Download Code
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003662]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2014-12-22 06:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (111 votes), past polls