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

Re: Order of startup methods with Test::Class

by Old_Gray_Bear (Bishop)
on Aug 31, 2011 at 11:41 UTC ( #923408=note: print w/replies, xml ) Need Help??

in reply to Order of startup methods with Test::Class

If you need to have the start up methods run in a specific order, something is wrong with your analysis of the problem.

That said, change your naming convention from 'sub name_that_makes_sense{}' to 'sub startxxx_name_that_makes_sense {}' and replace the xxx with the order of starting number (000, 001, ... , 998, 999). (But I'd go back to the problem analysis and ask "Why are things order-dependent? If A simply MUST come before B, then why are they in different setup-routines?")

I Go Back to Sleep, Now.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://923408]
[LanX]: Once upon a time there was light in my life But now there's only Trump in the dark Nothing I can say A total eclipse of the heart

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2017-08-21 23:41 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (325 votes). Check out past polls.