If you're worried about performance of your live code you could use Carp::Assert. Assertions will compile out if you set no Carp::Assert; and thus have no performance impact on the live code. That way you can at least perform parameter/return checking in your integration and system tests. And if there are ever any weird problems with your live code you can turn the assertions on by commenting out a single line.
In reply to Re^2: Testing parameters and return values
by tirwhan
in thread Testing parameters and return values
by Jman1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |