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


in reply to global source filters

This type of cross-cutting concern is best handled with AOP using the amazing Aspect module.