You might be interested in the compile time assertions that look like they will be coming in perl 5.8.1.
In reply to Re: global source filters by adrianh in thread global source filters by steves