Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Being more Assert-ive with Perlby kappa (Chaplain) |
on Sep 17, 2004 at 14:59 UTC ( [id://391796]=note: print w/replies, xml ) | Need Help?? |
It is not enough to have perl complain the first time I try to do $arg->{"key"} on an array ref. I want to catch things prior to that, and not allow any part of my methods to be run unless it receives the proper input. Design By Contract does not seem to solve the problem, it only makes language translator complain a little earlier, does it? We need to test the code with both correct and incorrect input values in any case.
In Section
Meditations
|
|