In Perl, my most common idiom is:
die "error string" unless condition;
I haven't really given it much thought, but now I see there are a number of very interesting assert modules on CPAN which require my investigation.
In reply to Re: Your use of assertions in Perl ?
by aufflick
in thread Your use of assertions in Perl ?
by ady
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |