Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Info about Test::Harness

by leriksen (Curate)
on Mar 28, 2008 at 02:17 UTC ( #676893=note: print w/ replies, xml ) Need Help??


in reply to Info about Test::Harness

Because execute_tests returns a list of two items, you end up assigning the fail results to $total (the last thing in the list - lookup "list assignment in a scalar context" and "comma operator" to find out why).

If you want the totals hash ref, do this

($total, undef) = execute_tests(...);

...reality must take precedence over public relations, for nature cannot be fooled. - R P Feynmann


Comment on Re: Info about Test::Harness
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2015-07-29 02:42 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 (260 votes), past polls