http://www.perlmonks.org?node_id=356133


in reply to Tripwire tests and future-proofing

Great suggestion. Reminds me of assertions.

Update: From the documentation for carp::assert:
Assertions are the explict expressions of your assumptions about the reality your program is expected to deal with, and a declaration of those which it is not. They are used to prevent your program from blissfully processing garbage inputs (garbage in, garbage out becomes garbage in, error out) and to tell you when you've produced garbage output.