Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 rifling through the Monastery: (5)
As of 2015-07-04 10:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (59 votes), past polls