Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^3: How to properly use modules?

by Anonymous Monk
on Apr 21, 2012 at 10:41 UTC ( #966341=note: print w/replies, xml ) Need Help??

in reply to Re^2: How to properly use modules?
in thread How to properly use modules?

With abstractions :)

Turn each (or all) .pl into a distribution with scriptdist, remove (rm -rfv t) the stock test templates and add new ones with Test::XT and Test::Script

Once you got this in version control (git), write real tests for each program with Test::Script::Run

Once you got a complete/comprehensive test suite for each program, try refactoring, say by making modulinos , and making your code skimmable code

See also writing tests on modules, What is the best way to add tests to existing code?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://966341]
[Corion]: Hmm - my Italian isn't that great - I assume this is more an accident and less an art project, right?
[Discipulus]: yes we are falling down
[Corion]: Discipulus: As is great tradition, just build another level on it ;)

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2017-02-28 10:38 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (399 votes). Check out past polls.