title: What are the good frameworks for unit-testing and mock objects in Perl?
body: <p>What frameworks and tools would you recommend for unit-testing and mock objects in Perl?</p>
  
  <p>I have an existing Perl application, that mainly does database access, reading and writing files. The application is basically a batch job type of application, it reads in bunch of stuff from files and database and writes a bunch of new files and some stuff to database.</p>
  
  <p>The application currently does not have any unit-test, but I'd like refactor application to have good unit tests.</p>
  
  <p>What frameworks and tools would you recommend for unit-testing and mocking objects? For example something similar to <a href="http://code.google.com/p/hamcrest/" rel="noreferrer">Hamcrest</a> and <a href="http://www.jmock.org/" rel="noreferrer">JMock</a> of Java?</p>
  
  <p>Also, are there any good BDD (Behaviour Driven Development) based testing frameworks for Perl?</p>